Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Fizzlemizz
Forum: Lua/XML Help 11-23-20, 09:51 AM
Replies: 8
Views: 347
Posted By Fizzlemizz
If comment out your current code, copy/paste the...

If comment out your current code, copy/paste the code above and use that instead, it should work.

If you create a macro with:
/run C_MountJournal.SummonByID(0)
And drag that to your action bar.

I...
Forum: Lua/XML Help 11-21-20, 07:16 PM
Replies: 8
Views: 280
Posted By Fizzlemizz
Try moving OnReady from ADDON_LOADED to...

Try moving OnReady from ADDON_LOADED to PLAYER_LOGIN. Your SavedVariables will have been loaded by the game when this event fires and it only fires once.

Don't forget to remove your old SV .lua...
Forum: Lua/XML Help 11-21-20, 01:23 PM
Replies: 8
Views: 347
Posted By Fizzlemizz
I suspect you're trying to do two different...

I suspect you're trying to do two different things that need different approaches

Updating the menu requires the Blizzard Collection addon to be loaded so that needs to be tracked.

If you're not...
Forum: Lua/XML Help 11-21-20, 09:29 AM
Replies: 8
Views: 347
Posted By Fizzlemizz
Your code for the hooked MountOptionsMenu_Init...

Your code for the hooked MountOptionsMenu_Init function doesn't seem to require any information so the hook itself is not required. Just run your code when your addon loads or when you've detected...
Forum: Lua/XML Help 11-20-20, 08:53 PM
Replies: 8
Views: 347
Posted By Fizzlemizz
If you mark you addons .toc to load when the...

If you mark you addons .toc to load when the Collections addon is loaded, you don't have to worry about tracking ADDON_LOADED (assuming that's the only addon you're waiting for and your addon isn't...
Forum: General Authoring Discussion 11-17-20, 09:51 AM
Replies: 2
Views: 540
Posted By Fizzlemizz
The addition of the addon table (Namespace if you...

The addition of the addon table (Namespace if you will) was exactly to avoid the situation of having to create functions and data as global if you only wanted to share it between other modules in...
Forum: AddOn Help/Support 11-13-20, 01:59 PM
Replies: 2
Views: 850
Posted By Fizzlemizz
Discussed here...

Discussed here (https://www.wowinterface.com/forums/showthread.php?t=58109&highlight=BackdropTemplate)
Forum: Tutorials & Other Helpful Info. 11-11-20, 03:53 PM
Replies: 1
Views: 648
Posted By Fizzlemizz
/api will show a "so-far" documented list. You...

/api will show a "so-far" documented list. You can drill down by clicking the links (it will list commands you can add to /api to start further into the list).

Gamepedia...
Forum: General Authoring Discussion 11-10-20, 09:35 AM
Replies: 2
Views: 1,263
Posted By Fizzlemizz
in-game /api C_GamePad and click the pink...

in-game
/api C_GamePad
and click the pink link

or, you can export the UI (https://wow.gamepedia.com/Viewing_Blizzard%27s_interface_code) and view the documentation...
Forum: AddOn Help/Support 11-08-20, 07:19 AM
Replies: 7
Views: 1,751
Posted By Fizzlemizz
C_CurrencyInfo.GetCurrencyListInfo returns a...

C_CurrencyInfo.GetCurrencyListInfo returns a table of information now rather than the parameters the old version returned
Instead of:
cname, _, _, _, _, ccount, _, _, citemID =...
Forum: Lua/XML Help 11-08-20, 07:03 AM
Replies: 6
Views: 1,345
Posted By Fizzlemizz
local h = { "hello", "bye" } local function...

local h = { "hello", "bye" }

local function OnEvent(self, event, ...)
for key, val in ipairs(h) do
print(val)
end
-- prints:
-- hello
-- bye
-- or:
Forum: AddOn Help/Support 11-07-20, 09:14 PM
Replies: 7
Views: 1,751
Posted By Fizzlemizz
A new error probably just means another error ie....

A new error probably just means another error ie. more than 1 thing needs to be fixed.

(goes to check...)Looking at the version just downloaded from the link you posted, the GetCurrencyListSize line...
Forum: Lua/XML Help 11-07-20, 05:29 PM
Replies: 6
Views: 1,345
Posted By Fizzlemizz
The arguments (payload) part of OnEvent is the...

The arguments (payload) part of OnEvent is the ...
It means a variable number of arguments (each event has zero to lots or arguments depending on the event received)

Frame:SetScript("OnEvent",...
Forum: AddOn Help/Support 11-06-20, 05:42 PM
Replies: 8
Views: 2,063
Posted By Fizzlemizz
Optimised for XML in 2004 and 2020, the...

Optimised for XML in 2004 and 2020, the noticeable difference is probably minimal these days, unless you have something creating lots frames at runtime. The largest single "batch" of frames are...
Forum: AddOn Help/Support 11-06-20, 04:20 PM
Replies: 8
Views: 2,063
Posted By Fizzlemizz
The only time you need to consume an xml template...

The only time you need to consume an xml template is if you require something to work with the secure environment but that can be done in xml or lua.

Intrinsics would need to be created in XML but...
Forum: AddOn Help/Support 11-06-20, 09:49 AM
Replies: 8
Views: 2,063
Posted By Fizzlemizz
There is nothing wrong with using XML. If someone...

There is nothing wrong with using XML. If someone else has already created a template you want to use then it's a waste of effort duplicating it in any fashion. Once the widget has been created, it...
Forum: Lua/XML Help 10-19-20, 01:29 PM
Replies: 4
Views: 921
Posted By Fizzlemizz
The first entry refers to the point on the target...

The first entry refers to the point on the target object to want to anchor the start of the line too (there is no second "attachto" point al-la SetPoint()).

line1:SetStartPoint("BOTTOMLEFT", f, 10,...
Forum: Lua/XML Help 10-19-20, 11:39 AM
Replies: 4
Views: 964
Posted By Fizzlemizz
What is SHOW that is being upper()ed in the slash...

What is SHOW that is being upper()ed in the slash command?

TSMSC_DB.isShown = not TSMSC_DB.isShown
if TSMSC_DB.isShown then
-- what is actioning the showing of the fame here?
else
-- what is...
Forum: Lua/XML Help 10-16-20, 01:01 PM
Replies: 4
Views: 1,269
Posted By Fizzlemizz
Presumably window.lua line 256 (just before the...

Presumably window.lua line 256 (just before the line causing the error by calling xx:Setbackdrop(...))
if not xxx.SetBackdrop then
Mixin(xxx, BackdropTemplateMixin)
end
xx:Setbackdrop(...)

xxx...
Forum: General Authoring Discussion 10-15-20, 05:14 PM
Replies: 1
Views: 638
Posted By Fizzlemizz
The basics would be something like: local...

The basics would be something like:
local maxNotifications = 3
local f = CreateFrame("Frame")
f:RegisterEvent("UNIT_HAPPINESS")
f.happiness = 0
f.happinessCount = 0
f:SetScript("OnEvent",...
Forum: Lua/XML Help 10-15-20, 12:08 AM
Replies: 4
Views: 1,444
Posted By Fizzlemizz
hooksecurefunc(C_GuildInfo, "GuildRoster",...

hooksecurefunc(C_GuildInfo, "GuildRoster", function()
nextGuildRoster = GetTime() + 0.1
end)


C_GuildInfo is the [table] part of the error.
Forum: Lua/XML Help 10-14-20, 04:35 PM
Replies: 13
Views: 1,755
Posted By Fizzlemizz
Tied myself up overthinking with the first...

Tied myself up overthinking with the first example code use of passing in a string.

/run print(FriendsFont_Large.SetFont) works in-game.
Forum: Lua/XML Help 10-14-20, 04:14 PM
Replies: 13
Views: 1,755
Posted By Fizzlemizz
Locals: obj = "AchievementFont_Small" looks like...

Locals:
obj = "AchievementFont_Small"

looks like a font name (or rather object) to me ;)
Forum: Lua/XML Help 10-14-20, 03:36 PM
Replies: 13
Views: 1,755
Posted By Fizzlemizz
SetFont("AchievementFont_Small",GMFONTS["B"],...

SetFont("AchievementFont_Small",GMFONTS["B"], 12)

The first parameter of your local SetFont function is supposed to be a FontString widget rather than the font...
Forum: Lua/XML Help 10-14-20, 12:09 PM
Replies: 4
Views: 1,444
Posted By Fizzlemizz
New C_GuildInfo API In game: "/api C_GuildInfo"...

New C_GuildInfo API
In game: "/api C_GuildInfo" click the pink link,

9.0 changes (https://github.com/Stanzilla/WoWUIBugs/wiki/9.0.1-Consolidated-UI-Changes)
Showing results 1 to 25 of 500