Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Fizzlemizz
Forum: AddOn Help/Support Today, 12:08 PM
Replies: 10
Views: 217
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: 10
Views: 217
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: 10
Views: 217
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: 10
Views: 217
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: 334
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: 334
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: 398
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: 398
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: 990
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: 990
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: 750
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: 747
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,148
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,148
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,148
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: 716
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,879
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: 967
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,405
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,427
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,427
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...
Forum: AddOn Help/Support 03-22-24, 11:56 AM
Replies: 10
Views: 1,427
Posted By Fizzlemizz
LibDBIcon has dependancies on LibStub and...

LibDBIcon has dependancies on LibStub and LibCallBackHandler. Those should both be included in your addon (lib folder) and .toc (or other .XML include file eg. embeds.xml) in case the user doesn't...
Forum: AddOn Help/Support 03-22-24, 10:38 AM
Replies: 6
Views: 1,018
Posted By Fizzlemizz
After the gobal has been created you can alway...

After the gobal has been created you can alway do

local db = MyVeryLongGlobaVariableName

When using tables, making changes to the local eg.

db.SomeVariable = "SomeThing New"
Will change the entry...
Forum: AddOn Help/Support 03-22-24, 10:13 AM
Replies: 6
Views: 1,018
Posted By Fizzlemizz
As an aside, all addons and the Blizzard UI share...

As an aside, all addons and the Blizzard UI share the same global table so any variable that will be global like frame names and SaveVariable names should be unique. Blizzard will use "common" names...
Forum: AddOn Help/Support 03-22-24, 10:06 AM
Replies: 6
Views: 1,018
Posted By Fizzlemizz
Saving MyAddonDB.lastLogoffTime = date("%m/%d/%y...

Saving
MyAddonDB.lastLogoffTime = date("%m/%d/%y %H:%M:%S")
just saves a string of "03/23/24 03:03:38"

No very useful in future if you just want the date part or just the time part (having to slice...
Showing results 1 to 25 of 500