Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 283
Search took 0.02 seconds.
Search: Posts Made By: LudiusMaximus
Forum: AddOn Help/Support 08-28-21, 04:10 PM
Replies: 10
Views: 664
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: 664
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: 506
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: 724
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: 31
Views: 19,840
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: 1,629
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: 1,629
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: 1,629
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: 2,491
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: 2,491
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: 2,491
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: 5,984
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: 2,491
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: 2,491
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: 2,491
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: 2,491
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: 2,491
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: 2,491
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: 998
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: 998
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: 998
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: 998
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: 9,849
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...
Forum: Lua/XML Help 03-09-21, 07:40 AM
Replies: 3
Views: 1,062
Posted By LudiusMaximus
This helped me to continue. Thanks to both of you!

This helped me to continue. Thanks to both of you!
Forum: Lua/XML Help 03-09-21, 03:39 AM
Replies: 3
Views: 1,062
Posted By LudiusMaximus
Show Party/Raid frame without being in party?

For testing purposes I need the CompactRaidFrameManager or PartyMemberFrame{1,...,4} with at least some party members. Is there a way to achieve this without actually being in a party or raid?

It...
Showing results 1 to 25 of 283