Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Fizzlemizz
Forum: AddOn Help/Support Yesterday, 11:31 PM
Replies: 3
Views: 93
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: 190
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: 290
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: 9
Views: 322
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: 9
Views: 322
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: 9
Views: 322
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: 232
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: 232
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: 232
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...
Forum: AddOn Help/Support 03-22-24, 09:33 AM
Replies: 6
Views: 232
Posted By Fizzlemizz
MyAddonDB.lastLogoffTime = time Should probably...

MyAddonDB.lastLogoffTime = time
Should probably be
MyAddonDB.lastLogoffTime = time()
for the time (https://warcraft.wiki.gg/wiki/API_time) function rather than a non-existant variable because you're...
Forum: Lua/XML Help 03-21-24, 02:02 PM
Replies: 4
Views: 437
Posted By Fizzlemizz
The game doesn't "destroy" widgets (frames,...

The game doesn't "destroy" widgets (frames, buttons etc). They remain until you /reload or logout.

I don't use Ace so I can only guess that at what releasing does, possibly some internal pool...
Forum: Tutorials & Other Helpful Info. 03-21-24, 01:49 PM
Replies: 13
Views: 49,168
Posted By Fizzlemizz
Wiki.gg replaced WoWPedia (by the same people)...

Wiki.gg replaced WoWPedia (by the same people) due to "stuff". The old site will just get more stale over time but won't go away any time soon (due to more "stuff")
Forum: Lua/XML Help 03-21-24, 01:41 PM
Replies: 4
Views: 437
Posted By Fizzlemizz
frame:Hide() Will hide the frame until you show...

frame:Hide()
Will hide the frame until you show it (presumably with the minimap button)

If you start off commenting out the Hide() until you've finished creating the frame and getting it working...
Forum: AddOn Help/Support 03-19-24, 11:04 PM
Replies: 13
Views: 3,139
Posted By Fizzlemizz
The PrintTime function is not actually being used...

The PrintTime function is not actually being used in this version so I removed it. Because we replaced the ticker, the calculating and display is all done in the OnUpdate function.

Added some test...
Forum: AddOn Help/Support 03-18-24, 01:00 PM
Replies: 7
Views: 969
Posted By Fizzlemizz
For completeness: List of Slot IDs...

For completeness: List of Slot IDs (https://warcraft.wiki.gg/wiki/InventorySlotId)
Forum: AddOn Help/Support 03-18-24, 12:06 PM
Replies: 7
Views: 969
Posted By Fizzlemizz
C_Item.DoesItemExist...

C_Item.DoesItemExist (https://warcraft.wiki.gg/wiki/API_C_Item.DoesItemExist)

local slotID = GetInventorySlotInfo(Headslot)
local itemLocation = ItemLocation:CreateFromEquipmentSlot(slotID)
if...
Forum: AddOn Help/Support 03-18-24, 11:07 AM
Replies: 13
Views: 3,139
Posted By Fizzlemizz
If you remove 1 then the overall session of 3...

If you remove 1 then the overall session of 3 hours would run 8 times in a day (24/3). If you added 1 (5 hours) then it would run 4.8 times (24/5) which wouldn't work as it would break the startTime...
Forum: AddOn Help/Support 03-18-24, 10:56 AM
Replies: 7
Views: 969
Posted By Fizzlemizz
You never know what 11 may bring to the table ;)

You never know what 11 may bring to the table ;)
Forum: AddOn Help/Support 03-18-24, 10:29 AM
Replies: 7
Views: 969
Posted By Fizzlemizz
C_Item.GetCurrentItemLevel...

C_Item.GetCurrentItemLevel (https://warcraft.wiki.gg/wiki/API_C_Item.GetCurrentItemLevel) requires an ItemLocationMixin (https://warcraft.wiki.gg/wiki/ItemLocationMixin) not slotID

local slotID =...
Forum: AddOn Help/Support 03-17-24, 10:47 AM
Replies: 13
Views: 3,139
Posted By Fizzlemizz
Your code doesn't contain a btn to...

Your code doesn't contain a btn to hide/show.

You want to hide/show the frame that you created and for that (in this case) you would use the frame name ZAMTimer777. If you are giving frames a name...
Forum: AddOn Help/Support 03-17-24, 10:23 AM
Replies: 13
Views: 3,139
Posted By Fizzlemizz
It's all variations on a theme (and math)....

It's all variations on a theme (and math). Knowing the remainder of a session (session totalDuration of 1, 2, 4, 6 or 12 hours). This is based on the start time (startTime - serverTime) %...
Forum: AddOn Help/Support 03-16-24, 11:19 PM
Replies: 13
Views: 3,139
Posted By Fizzlemizz
Or is it two events repeating ie. 5 mins doing...

Or is it two events repeating ie.


5 mins doing something +
55 mins doing nothing

Totaling 1 hour repeating 24/7/365.

or is it
Forum: Macro Help 03-14-24, 11:19 PM
Replies: 2
Views: 1,308
Posted By Fizzlemizz
I'm not aware of anything in the API that gives...

I'm not aware of anything in the API that gives you that information (your targets mount).
Forum: AddOn Help/Support 03-14-24, 11:02 PM
Replies: 19
Views: 3,858
Posted By Fizzlemizz
If Trial of the Element is what you are wanting...

If Trial of the Element is what you are wanting to track, then why not use the addon and remove the entries for all the other events (or disable them) instead of trying to re-invent the wheel?
Forum: AddOn Help/Support 03-14-24, 01:14 PM
Replies: 19
Views: 3,858
Posted By Fizzlemizz
I wasn't going to but... Your numbers still dont...

I wasn't going to but...
Your numbers still dont add up
Session Start (6 hours):
(line 0) Time 06:00 - Sub-Session B -- + 60 min = 07:00 (120 minutes until next event)
(line 1) Time 07:00 -...
Showing results 1 to 25 of 500