Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Fizzlemizz
Forum: Lua/XML Help 12-31-20, 02:54 PM
Replies: 3
Views: 850
Posted By Fizzlemizz
In your code, Icon is a Button ...

In your code, Icon is a Button (SetNormalTexture). In Blizzards, it's a texture. With your button you could probably:
local IconTexture = Icon:GetNormalTexture()
IconTexture:SetAtlas(...)
Forum: Lua/XML Help 12-30-20, 01:47 PM
Replies: 3
Views: 1,023
Posted By Fizzlemizz
You might want to...

You might want to add:
MainMenuBar.ignoreFramePositionManager = true
Forum: Lua/XML Help 12-28-20, 05:28 PM
Replies: 4
Views: 511
Posted By Fizzlemizz
local MyLabel =...

local MyLabel = CreateAtlasMarkup("NPE_RightClick", 16, 16).."My label text"
Forum: Lua/XML Help 12-24-20, 03:02 PM
Replies: 3
Views: 794
Posted By Fizzlemizz
local f = CreateFrame("Frame", nil,...

local f = CreateFrame("Frame", nil, UIParent)
local t = f:CreateFontString(f, "OVERLAY", "GameTooltipText")
t:SetText("Great Vault")
f:SetSize(t:GetSize())
t:SetPoint("CENTER")
f:SetPoint("TOP",...
Forum: Lua/XML Help 12-17-20, 11:32 AM
Replies: 7
Views: 1,124
Posted By Fizzlemizz
If the table has a number entries and the first 5...

If the table has a number entries and the first 5 are for one situation and the next 5 (or whatever) are for another situation then you could:

if a then
PlaySoundFile(TableofOggs[random(1,...
Forum: Lua/XML Help 12-16-20, 09:52 AM
Replies: 19
Views: 6,825
Posted By Fizzlemizz
Again, the same as Kanegasi but slightly...

Again, the same as Kanegasi but slightly different in order to bake the border colouring into your created frames:

local function ColorBorders(self, r, g, b, a)
for i=1, 4...
Forum: Lua/XML Help 12-15-20, 11:21 AM
Replies: 10
Views: 2,414
Posted By Fizzlemizz
You shouldd be getting an error! Change the first...

You shouldd be getting an error!
Change the first instance of:
self.TimeSinceLastUpdate = 0
to:
f.TimeSinceLastUpdate = 0

f is the frame you just created. The second place you reset...
Forum: Lua/XML Help 12-15-20, 12:35 AM
Replies: 10
Views: 2,414
Posted By Fizzlemizz
Not getting another "not well-formed" error...

Not getting another "not well-formed" error should have been a giveaway. Well, that and reading the .toc listing.

Maybe I'll have better luck next time...
Forum: Lua/XML Help 12-14-20, 10:05 PM
Replies: 10
Views: 2,414
Posted By Fizzlemizz
<OnUpdate> UIMod_OnUpdate(self,...

<OnUpdate>
UIMod_OnUpdate(self, elapsed)
</OnUpdate>
Assuming UIMod_OnUpdate is the name of your lua OnUpdate function and it's global.

I would have to check but I'm pretty sure the...
Forum: Lua/XML Help 12-14-20, 07:18 PM
Replies: 10
Views: 2,414
Posted By Fizzlemizz
The error is with the formatting of your XML,...

The error is with the formatting of your XML, seemingly in line 1.

<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Forum: Lua/XML Help 12-14-20, 04:06 PM
Replies: 19
Views: 6,825
Posted By Fizzlemizz
Something else to try: local function...

Something else to try:
local function CreateBorder(self)
if not self.borders then
self.borders = {}
for i=1, 4 do
self.borders[i] = self:CreateLine(nil, "BACKGROUND", nil, 0)
local l =...
Forum: Lua/XML Help 12-13-20, 02:37 PM
Replies: 4
Views: 1,140
Posted By Fizzlemizz
Not unless they've placed a reference to the...

Not unless they've placed a reference to the local function (or calling function) in the global table or a call to the function in something globally accessable like a frame script.
Forum: Lua/XML Help 12-13-20, 12:49 PM
Replies: 4
Views: 1,140
Posted By Fizzlemizz
As an aside, the _G is not needed in this case...

As an aside, the _G is not needed in this case because the frame name is added to the global table as a reference when the frame is created (all frames with names are added to the global table by...
Forum: Lua/XML Help 12-04-20, 10:27 AM
Replies: 7
Views: 1,646
Posted By Fizzlemizz
offset is a parameter passed to the script which...

offset is a parameter passed to the script which is then passed to your function as the second parameter.

frameScroll:SetScript("OnVerticalScroll", function (self, offset)...
Forum: Lua/XML Help 11-23-20, 09:51 AM
Replies: 8
Views: 1,268
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: 1,034
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: 1,268
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: 1,268
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: 1,268
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: 1,852
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: 2,384
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: 1,645
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: 2,529
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: 3,580
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: 2,921
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:
Showing results 1 to 25 of 500