Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Fizzlemizz
Forum: AddOn Help/Support Today, 02:05 PM
Replies: 16
Views: 328
Posted By Fizzlemizz
You need to go through the code with a fine tooth...

You need to go through the code with a fine tooth comb. (test the code is actually being called when expected print("xx")). You have some duplications happening that effect what's going on...
Forum: AddOn Help/Support Today, 01:09 PM
Replies: 16
Views: 328
Posted By Fizzlemizz
I don 't see a scroll list in the test code, just...

I don 't see a scroll list in the test code, just a single row of stats fontstrings.
Forum: AddOn Help/Support Today, 12:59 PM
Replies: 16
Views: 328
Posted By Fizzlemizz
The InCallout.lua file from the test repo. See...

The InCallout.lua file from the test repo. See the comments starting with -- Fizz:.

Your .toc has two ## SavedVariables: entries (they can just go on the one line separated by a comma. Maybe the...
Forum: AddOn Help/Support Today, 12:30 PM
Replies: 16
Views: 328
Posted By Fizzlemizz
If you mean in your Stats frame then that's all...

If you mean in your Stats frame then that's all you are showing

local character = UnitName("player") .. "-" .. GetRealmName() -- Get the stats for the current character from the DB
local stats =...
Forum: AddOn Help/Support Today, 12:08 PM
Replies: 16
Views: 328
Posted By Fizzlemizz
PLAYER_LOGIN doen't have a payload so it should...

PLAYER_LOGIN doen't have a payload so it should just be:
if event == "PLAYER_LOGIN" then

Your other event calls
UpdatePvPStats()
Which maybe should be
UpdatePvPStatsFrame()

I still don't see...
Forum: AddOn Help/Support Today, 11:37 AM
Replies: 16
Views: 328
Posted By Fizzlemizz
A quick look and IncCalloutDB = IncCalloutDB or...

A quick look and
IncCalloutDB = IncCalloutDB or {}
is in the function SavePvPStats which is never called in the code you posted?
Forum: AddOn Help/Support Today, 10:50 AM
Replies: 16
Views: 328
Posted By Fizzlemizz
The code has two separate frames doing the same...

The code has two separate frames doing the same thing??? These events could be handled by your pvpStatsFrame.

Remove ADDON_LOADED and replace it with PLAYER_LOGIN as it only fires once after ALL...
Forum: AddOn Help/Support Yesterday, 10:10 PM
Replies: 16
Views: 328
Posted By Fizzlemizz
You primary problem is that you don't update the...

You primary problem is that you don't update the character information until pvpStatsFrame OnShow.

Presumably a player can "gain stats" without showing the frame so for any saved information to be...
Forum: AddOn Search/Requests 05-03-24, 06:36 PM
Replies: 6
Views: 336
Posted By Fizzlemizz
SetJustifyV is not for anchoring (SetPoint), it...

SetJustifyV is not for anchoring (SetPoint), it purely to set the vertical justification of the text inside a FontString (Think of the FontString as a container you anchor and the text inside as...
Forum: AddOn Search/Requests 05-02-24, 07:17 PM
Replies: 6
Views: 336
Posted By Fizzlemizz
It is (always has been) for SetJustifyV on a...

It is (always has been) for SetJustifyV on a FontString. Until now (Cata atm.), the game just accepted "CENTER" without complaining. SetJustfyH still uses "CENTER".
Forum: Lua/XML Help 04-29-24, 02:37 PM
Replies: 4
Views: 404
Posted By Fizzlemizz
Any event starting with UNIT_ should work for any...

Any event starting with UNIT_ should work for any valid unitid.





local arg1, arg2, arg3 = SomeFuncWith3Returns()
-- get all returns

local _, _, arg3 = SomeFuncWith3Returns()
Forum: Lua/XML Help 04-29-24, 09:47 AM
Replies: 4
Views: 404
Posted By Fizzlemizz
UNIT_TARGET...

UNIT_TARGET (https://warcraft.wiki.gg/wiki/UNIT_TARGET)


local npToT = CreateFrame("Frame", nil, UIParent);
local font = "Interface\\Addons\\NameplateTargetOfTarget\\Rubik-Medium.ttf";
npToT.text =...
Forum: AddOn Help/Support 04-26-24, 12:25 PM
Replies: 11
Views: 994
Posted By Fizzlemizz
Stealing from Blizz. code, add this to your timer...

Stealing from Blizz. code, add this to your timer before the other code:

local canUseRated = C_PvP.CanPlayerUseRatedPVPUI();
local canUsePremade = C_LFGInfo.CanPlayerUsePremadeGroup();
if...
Forum: AddOn Help/Support 04-25-24, 10:06 PM
Replies: 11
Views: 994
Posted By Fizzlemizz
The Blizzard_PVPUI is marked as LOD. Have you...

The Blizzard_PVPUI is marked as LOD. Have you tried checking it is actually loaded after you've clicked the stat button and, if not then loading it, before the button does anything else (or before...
Forum: Lua/XML Help 04-15-24, 12:05 PM
Replies: 2
Views: 752
Posted By Fizzlemizz
From a quick look, I don't see .Bar ever getting...

From a quick look, I don't see .Bar ever getting a SetHeight() setting, just a width so you won't ever actually see the bar using a single anchor point. Maybe use "TOPLEFT" and "BOTTOMLEFT" in the...
Forum: Lua/XML Help 04-01-24, 11:04 AM
Replies: 3
Views: 748
Posted By Fizzlemizz
In XML, where you see parentKey, that is convert...

In XML, where you see parentKey, that is convert to a key on the parent frame (funny that)
<Button parentKey="CloseButton" inherits="UIPanelCloseButtonDefaultAnchors"/>
Would...
Forum: UI Screenshots, Feedback and Design Discussion 03-29-24, 09:01 PM
Replies: 6
Views: 1,154
Posted By Fizzlemizz
Not anymore (retail). It just renders the texture...

Not anymore (retail). It just renders the texture transparent. Not sure about the other clients. Maybe something to do with adding .png support.

Edit:
This caused me to do some testing. If the...
Forum: UI Screenshots, Feedback and Design Discussion 03-29-24, 07:22 PM
Replies: 6
Views: 1,154
Posted By Fizzlemizz
Saw that after I posted ;)

Saw that after I posted ;)
Forum: UI Screenshots, Feedback and Design Discussion 03-29-24, 07:13 PM
Replies: 6
Views: 1,154
Posted By Fizzlemizz
.tga, .png .blp (you will need to add the...

.tga, .png .blp (you will need to add the extension to the texture name in your code if it's .png otherwise the game will choose .blp if it exists then .tga)

The sides should be 4, 8, 16, 32, 64,...
Forum: Lua/XML Help 03-29-24, 11:09 AM
Replies: 3
Views: 721
Posted By Fizzlemizz
function addonTable:doSomething() It's a matter...

function addonTable:doSomething()
It's a matter of what scope you want the function/variable to have

Added to global table, All addons have acess to it.
Added to "namespace" table, the current...
Forum: AddOn Help/Support 03-27-24, 11:31 PM
Replies: 4
Views: 1,881
Posted By Fizzlemizz
local addonName = ... local AutoSelectGossip = { ...

local addonName = ...
local AutoSelectGossip = {
[48598] = true,
[109275] = true,
};

local function IsAutoSelectOption(gossipOptionID)
return gossipOptionID and...
Forum: Lua/XML Help 03-23-24, 03:02 PM
Replies: 2
Views: 970
Posted By Fizzlemizz
You can export...

You can export (https://warcraft.wiki.gg/wiki/Viewing_Blizzard%27s_interface_code) the entire Blizzard UI code from the game and look for the template there.

Addons can have their own templates so...
Forum: Lua/XML Help 03-23-24, 09:53 AM
Replies: 6
Views: 1,407
Posted By Fizzlemizz
watchedFactionID = watchedFactionID == nil and...

watchedFactionID = watchedFactionID == nil and inInstance and hasDungeonTabard and tabardID
That resoves to a boolean

if watchedFactionID == nil and inInstance == AnythingButNilOrFalse and...
Forum: AddOn Help/Support 03-22-24, 04:10 PM
Replies: 10
Views: 1,430
Posted By Fizzlemizz
You have two (for want of a better term)...

You have two (for want of a better term) "primary" libraries (although your posted code only uses LibDBIcon)

LibDBIcon -- Creates manages the minimap button
LibDataBroker -- Helps creating plugins...
Forum: AddOn Help/Support 03-22-24, 03:23 PM
Replies: 10
Views: 1,430
Posted By Fizzlemizz
That actual code isn't using LibDataBroker-1.1...

That actual code isn't using LibDataBroker-1.1 but I'm guessing it's all meant to come together with the previous code (or other).

As a frame that shows/hides using the minimap button, it works as...
Showing results 1 to 25 of 500