Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.06 seconds.
Search: Posts Made By: Fizzlemizz
Forum: Lua/XML Help 06-11-21, 08:54 PM
Replies: 6
Views: 864
Posted By Fizzlemizz
You are indeed. The script handler gets passed a...

You are indeed.

The script handler gets passed a parameter (self) (the widget) and you then pass it on to your function by declaring function(self)... end for the script to call.

The "self" in the...
Forum: Lua/XML Help 06-10-21, 11:46 PM
Replies: 6
Views: 864
Posted By Fizzlemizz
If buttonName was global, each click would print...

If buttonName was global, each click would print the last thing it was set to at the time of the click. If say another addon was using buttonName accidently as a global, it could be set to anything...
Forum: Lua/XML Help 06-10-21, 11:04 PM
Replies: 6
Views: 864
Posted By Fizzlemizz
Where you're setting the OnClick for each button,...

Where you're setting the OnClick for each button, you're using a fixed string to print.

print(buttonName)
Where is buttonName defined? If it's global and being overwritten before you get to click...
Forum: AddOn Help/Support 06-04-21, 12:44 PM
Replies: 1
Views: 141
Posted By Fizzlemizz
Instead of changing the file, try dragging the...

Instead of changing the file, try dragging the button to where you want it while in-game.
Forum: AddOn Help/Support 06-04-21, 11:38 AM
Replies: 1
Views: 126
Posted By Fizzlemizz
Those presumably are for any frames created...

Those presumably are for any frames created before PLAYER_LOGIN using SetUserPlaced.

If those frames from a backup no longer exist at PLAYER_LOGIN or don't have SetUserPlaced I'm guessing the game...
Forum: Lua/XML Help 05-31-21, 08:13 PM
Replies: 1
Views: 240
Posted By Fizzlemizz
ToggleWarlockCheckbox:SetScript("OnClick",...

ToggleWarlockCheckbox:SetScript("OnClick", CheckBox_OnClick)

While there are possible possabilities, the CheckBox_OnClick function from the line above doesn't seem to exist in the code you posted....
Forum: Lua/XML Help 05-30-21, 09:22 AM
Replies: 1
Views: 200
Posted By Fizzlemizz
In every version of the game up to Classic...

In every version of the game up to Classic Vanilla, frames were created with a backdrop by default. Since then (Shadowlands/Classic TBC), backdrops are optional and you have to "add" them to your...
Forum: Lua/XML Help 05-30-21, 09:07 AM
Replies: 15
Views: 1,020
Posted By Fizzlemizz
The error indicates that you've added something...

The error indicates that you've added something to the namespace.wishlists[raid] table that is not a frame, texture, fontstring etc. A quick check before the SetPoint would be to see what you're...
Forum: Lua/XML Help 05-28-21, 08:08 AM
Replies: 5
Views: 281
Posted By Fizzlemizz
Line 182 should be changed...

Line 182 should be changed from

KBT_Display_Frame=CreateFrame("FRAME","KBT_Display_Frame",UIParent);

to be

KBT_Display_Frame=CreateFrame("FRAME","KBT_Display_Frame",UIParent, BackdropTemplateMixin...
Forum: Lua/XML Help 05-27-21, 09:27 PM
Replies: 5
Views: 281
Posted By Fizzlemizz
There's no mention of tframe in the code you...

There's no mention of tframe in the code you posted and the error and the code don't seem to match up.

Maybe the error and the code are from different clients? Error in Classic, code from Retail or...
Forum: Lua/XML Help 05-27-21, 12:44 PM
Replies: 9
Views: 633
Posted By Fizzlemizz
Have you checked for the obvious things like: Is...

Have you checked for the obvious things like:

Is there a chance the character has a self.db but not a self.db.profile.useClassRep making local useClassRep nil in RepByZoneGetRacialRep()?
Forum: Lua/XML Help 05-26-21, 08:55 PM
Replies: 2
Views: 270
Posted By Fizzlemizz
The ActionButtonTemplate is setting an absolute...

The ActionButtonTemplate is setting an absolute size for the NormalTexture rather than using SetPoint() relative to the frame.
Classic, #NoChanges ;)
local x, t

x = CreateFrame("Button",...
Forum: Lua/XML Help 05-26-21, 08:43 PM
Replies: 2
Views: 270
Posted By Fizzlemizz
It does. Are they being re-sized again somewhere...

It does. Are they being re-sized again somewhere else in your code?

Edit: You mean on Classic..
Forum: Lua/XML Help 05-25-21, 11:31 AM
Replies: 3
Views: 317
Posted By Fizzlemizz
Use a toggle depending on what you want to...

Use a toggle depending on what you want to toggle.


local SomeBooleanVariable -- could be a SavedVaraible to save between sessions.
SlashCmdList.MYSLASHFUNCTION = function(msg)
...
Forum: General Authoring Discussion 05-25-21, 10:23 AM
Replies: 5
Views: 370
Posted By Fizzlemizz
For people that dolwnload manually (and there are...

For people that dolwnload manually (and there are some) only having to download/unzip once then copy to the different path makes life easier especially as the number of Classic cients grow and no...
Forum: Lua/XML Help 05-25-21, 12:22 AM
Replies: 9
Views: 633
Posted By Fizzlemizz
You have the .zip in your previous post to undo...

You have the .zip in your previous post to undo whatever it was :)
Forum: Lua/XML Help 05-24-21, 11:52 PM
Replies: 9
Views: 633
Posted By Fizzlemizz
As far as I can tell, in the set for useClassRep...

As far as I can tell, in the set for useClassRep (Options.lua line 83) you have
self.racialRepID, self.racialRepName = self:GetRacialRep()
Is self:GetRacialRep() returning anything at this point?
Forum: General Authoring Discussion 05-24-21, 11:04 PM
Replies: 5
Views: 370
Posted By Fizzlemizz
I don't think the MyAddon-Mainline.toc will be...

I don't think the MyAddon-Mainline.toc will be usable until 9.1 so best to leave MyAddon.toc as the "Retail" .toc.

This might have changed...
Forum: Lua/XML Help 05-24-21, 09:32 PM
Replies: 1
Views: 223
Posted By Fizzlemizz
First decision. Do you want to make seperate xml...

First decision. Do you want to make seperate xml frames for classic and non-classic

If yes then:
Classic: (same as always)
<Frame name="TestFrame" parent="UIParent">
<Size x="300"...
Forum: Lua/XML Help 05-24-21, 08:26 PM
Replies: 6
Views: 254
Posted By Fizzlemizz
<Frame name="TestFrame" parent="UIParent"> <Size...

<Frame name="TestFrame" parent="UIParent">
<Size x="300" y="300"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Scripts>
<OnLoad inherit="prepend">
if BackdropTemplateMixin...
Forum: Lua/XML Help 05-24-21, 08:06 PM
Replies: 6
Views: 254
Posted By Fizzlemizz
<Scripts> <OnLoad inherit="prepend"> if...

<Scripts>
<OnLoad inherit="prepend">
if BackdropTemplateMixin then -- if this is NOT a Classic type frame, add the backdrop mixin
Mixin(self,...
Forum: Lua/XML Help 05-24-21, 06:59 PM
Replies: 6
Views: 254
Posted By Fizzlemizz
This would mean you are calling...

This would mean you are calling frame:SetBackdropColor(...) on a frame that doesn't the mixin set. Maybe a frame created using CreateFrame() with a template that doesn't set a backdrop by...
Forum: Lua/XML Help 05-24-21, 04:47 PM
Replies: 6
Views: 254
Posted By Fizzlemizz
Will...

Will (https://www.wowinterface.com/forums/showpost.php?p=339241&postcount=3) allow you use the same xml frame in either Classic (era) or BCC or Retail by using the OnLoad script to check is the mixin...
Forum: Lua/XML Help 05-24-21, 01:26 PM
Replies: 2
Views: 221
Posted By Fizzlemizz
An alternative with xml to using different files...

An alternative with xml to using different files is to use:
<OnLoad inherit="prepend">
OnLoadFunc(self)
</OnLoad>


And then in OnLoadFunc before using any SetBackdropXxx calls use:

if...
Forum: Lua/XML Help 05-24-21, 12:29 AM
Replies: 3
Views: 317
Posted By Fizzlemizz
The function for a slash commands has a single...

The function for a slash commands has a single string parameter you can use for different actions:

SLASH_MYSLASHFUNCTION1 = "/ms"
SlashCmdList.MYSLASHFUNCTION = function(msg)
local name =...
Showing results 1 to 25 of 500