Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 273
Search took 0.01 seconds.
Search: Posts Made By: LudiusMaximus
Forum: Lua/XML Help Yesterday, 01:57 PM
Replies: 11
Views: 403
Posted By LudiusMaximus
Cool! Thanks to both of you! :-D

Cool! Thanks to both of you! :-D
Forum: Lua/XML Help Yesterday, 01:47 PM
Replies: 11
Views: 3,193
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: 11
Views: 403
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: 11
Views: 403
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: 11
Views: 403
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: 11
Views: 403
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: 11
Views: 403
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: 11
Views: 403
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: 231
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: 231
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: 231
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: 231
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: 8,060
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: 472
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: 472
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...
Forum: Lua/XML Help 02-09-21, 05:41 PM
Replies: 2
Views: 394
Posted By LudiusMaximus
Nice, thank you! Will add this to the wowpedia...

Nice, thank you! Will add this to the wowpedia page later.
Forum: Lua/XML Help 02-09-21, 05:03 PM
Replies: 2
Views: 394
Posted By LudiusMaximus
GetIgnoreParentAlpha() ??

There is SetIgnoreParentAlpha() (https://wow.gamepedia.com/API_Region_SetIgnoreParentAlpha), but is there a way to check whether a region is currently ignoring its parent alpha or not? Or do I have...
Forum: General Authoring Discussion 01-20-21, 02:54 AM
Replies: 12
Views: 1,283
Posted By LudiusMaximus
Of course, if there is an error anywhere in your...

Of course, if there is an error anywhere in your lua file (red bugsack minimap icon) it's likely that nothing will work.
Forum: General Authoring Discussion 01-19-21, 06:22 PM
Replies: 12
Views: 1,283
Posted By LudiusMaximus
I'm not sure, if this works: function...

I'm not sure, if this works:
function EZTest_Config.DismountCheck.setFunc(state)
EZTestData.Config_Dismount = state
lib.ApplyLayout()
end

Try this and put a print in there to see if anything is...
Forum: Classic - AddOn Help/Support 01-19-21, 06:16 PM
Replies: 5
Views: 782
Posted By LudiusMaximus
Instead of local...

Instead of
local BlizzardGameTooltipOnUpdateRetention = GameTooltip.OnUpdate
you would have to do
local BlizzardGameTooltipOnUpdateRetention = GameTooltip:GetScript("OnUpdate")

But what you are...
Forum: General Authoring Discussion 01-19-21, 02:59 PM
Replies: 12
Views: 1,283
Posted By LudiusMaximus
Have you checked if your setFuncs get executed as...

Have you checked if your setFuncs get executed as expected?

function EZTest_Config.DismountCheck.setFunc(state)
print("-----> DismountCheck.setFunc", state)
EZTestData.Config_Dismount = state
...
Forum: General Authoring Discussion 01-19-21, 06:59 AM
Replies: 12
Views: 1,283
Posted By LudiusMaximus
OK, can you share your toc file? If your...

OK, can you share your toc file? If your SavedVariables are not working, we first have to make sure it is setup there correctly.
Forum: General Authoring Discussion 01-19-21, 05:01 AM
Replies: 12
Views: 1,283
Posted By LudiusMaximus
Hello and welcome! Could you wrap your code in...

Hello and welcome!

Could you wrap your code in the [ CODE ] or [ highlight="Lua"] tags? (The Buttons above your advanced editing text box.) This makes reading much easier.

Also, I have not fully...
Forum: Classic - AddOn Help/Support 01-19-21, 04:51 AM
Replies: 5
Views: 782
Posted By LudiusMaximus
Why don't you hook the scripts instead of...

Why don't you hook the scripts instead of overriding them?
Forum: Lua/XML Help 01-19-21, 04:46 AM
Replies: 0
Views: 551
Posted By LudiusMaximus
AceDB writing random empty entries in SavedVariables

This is the minimal working example.

Core.lua:
Addon = LibStub("AceAddon-3.0"):NewAddon("mwe3")

Addon.defaults = {
profile = {
mySituations = {
-- Default values for all situations.
...
Showing results 1 to 25 of 273