Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 285
Search took 0.02 seconds.
Search: Posts Made By: LudiusMaximus
Forum: AddOn Search/Requests 12-15-21, 09:24 AM
Replies: 5
Views: 766
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: 372
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,230
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,230
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: 3,108
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,291
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: 36
Views: 21,207
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,037
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,037
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,037
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: 3,397
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: 3,397
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: 3,397
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: 6,476
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: 3,397
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: 3,397
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: 3,397
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: 3,397
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: 3,397
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: 3,397
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,299
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 +...
Forum: Lua/XML Help 04-07-21, 12:41 AM
Replies: 6
Views: 1,299
Posted By LudiusMaximus
Thanks for the quick reply! So simple. But...

Thanks for the quick reply! So simple.

But apparently due to the nature of UIPanelScrollFrameTemplate this does not include the scroll bar in the box and the box is also a few pixels to small. So I...
Forum: Lua/XML Help 04-07-21, 12:33 AM
Replies: 6
Views: 1,299
Posted By LudiusMaximus
Ah, thanks so much. I should have taken a closer...

Ah, thanks so much. I should have taken a closer look at:
https://github.com/Gethe/wow-ui-source/blob/live/FrameXML/StaticPopup.lua#L4313

:-) Works perfectly now.

A little follow-up question, if I...
Forum: Lua/XML Help 04-06-21, 04:47 PM
Replies: 6
Views: 1,299
Posted By LudiusMaximus
insertedFrame for StaticPopup_Show() not working

I want to display some easy-to-copy text in a popup dialog.

So I thought StaticPopup_Show() (https://wowpedia.fandom.com/wiki/API_StaticPopup_Show) with an edit box as the 'insertedFrame' argument...
Forum: General Authoring Discussion 03-13-21, 03:55 PM
Replies: 6
Views: 10,358
Posted By LudiusMaximus
I am currently giving VSCode a try. Any...

I am currently giving VSCode a try.

Any suggestions on which extensions I should use?

Judging by popularity, this seems to be a must-have for...
Showing results 1 to 25 of 285