Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: Fizzlemizz
Forum: Lua/XML Help Today, 01:54 AM
Replies: 8
Views: 118
Posted By Fizzlemizz
It looks like you're wanting something like the...

It looks like you're wanting something like the following to create a set of columns/rows:


local function buttonFrameButtonLayout()
local lastRelative, lastOnTop =...
Forum: Lua/XML Help Yesterday, 08:21 PM
Replies: 8
Views: 118
Posted By Fizzlemizz
Using the Pastebin code and assuming all your...

Using the Pastebin code and assuming all your button names are consistant starting with "NewbDevBoxButtonFrame" and prefixed with the name in ButtonTable ie.

local xxx = CreateFrame("Button",...
Forum: Lua/XML Help Yesterday, 08:04 PM
Replies: 8
Views: 118
Posted By Fizzlemizz
Possibly something like this so you can store...

Possibly something like this so you can store references to your created buttons into ButtonTable

local ButtonTable = {
LogoutButton = { active=true },
ExitButton = { active=true },
FStackButton...
Forum: Lua/XML Help Yesterday, 07:53 PM
Replies: 8
Views: 118
Posted By Fizzlemizz
What is LogoutButton, ExitButton...

What is LogoutButton, ExitButton etc.?

Presuambly they relate in some way to how you're creating your buttons but it's all a bit hard to tell with just the code presented.
Forum: Lua/XML Help Yesterday, 07:42 PM
Replies: 8
Views: 118
Posted By Fizzlemizz
thisButton = "ButtonFrame" .. k -- at this point...

thisButton = "ButtonFrame" .. k
-- at this point thisButton is a string, not an actual button.
thisButton:ClearAllPoints()
-- so this will fail

You need to resolve the string to an actual button...
Forum: General Authoring Discussion 06-21-21, 01:24 PM
Replies: 2
Views: 131
Posted By Fizzlemizz
If you just want a coloured square, it might be...

If you just want a coloured square, it might be easier to use a texture:

local p = CreateFrame("Frame", nil, UIParent)
p:SetWidth(100)
p:SetHeight(100)
p:SetPoint("TOPLEFT", 100, -100)
p.Texture =...
Forum: Lua/XML Help 06-18-21, 11:40 PM
Replies: 3
Views: 198
Posted By Fizzlemizz
As is, it works on all three clients for...

As is, it works on all three clients for me.

Have fun.
Forum: Lua/XML Help 06-18-21, 08:47 PM
Replies: 3
Views: 198
Posted By Fizzlemizz
In my UI I have this. if...

In my UI I have this.

if button.SetFixedFrameStrata then -- non-Classic support
button:SetFixedFrameStrata(false)
end
button:SetFrameStrata(strata of my mmbutton panel)
button:SetFrameLevel(level...
Forum: Lua/XML Help 06-17-21, 08:44 PM
Replies: 2
Views: 136
Posted By Fizzlemizz
local f1 = CreateFrame("Button", nil, UIParent,...

local f1 = CreateFrame("Button", nil, UIParent, "SecureActionButtonTemplate, UIPanelButtonTemplate")
f1:SetSize(80, 30)
f1:SetPoint("CENTER")
f1:SetText("Logout")
f1:SetAttribute("type",...
Forum: Lua/XML Help 06-16-21, 12:24 PM
Replies: 4
Views: 144
Posted By Fizzlemizz
To save information between sessions you need to...

To save information between sessions you need to add a setting you your .toc file

for use by ALL characters (or set up a character specific mechanism here):
## SavedVariables: xxx
Information saved...
Forum: Lua/XML Help 06-16-21, 11:20 AM
Replies: 4
Views: 144
Posted By Fizzlemizz
You've given no context as to the where, when and...

You've given no context as to the where, when and how this code is called. Makes it almost impossible to comment other than to say the first line doesn't seem to to have anything to do with the other...
Forum: Lua/XML Help 06-11-21, 08:54 PM
Replies: 6
Views: 985
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: 985
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: 985
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: 172
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: 165
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: 264
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: 236
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,144
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: 336
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: 336
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: 774
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: 316
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: 316
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: 372
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)
...
Showing results 1 to 25 of 500