Skip to content

Commit

Permalink
2.0.6
Browse files Browse the repository at this point in the history
Updated Libs
Rewrote Filter Menu to use new Menu system
Resolved issues from TWW pre-patch
  • Loading branch information
Noshei committed Aug 14, 2024
1 parent 4ca40f5 commit a618ac2
Show file tree
Hide file tree
Showing 18 changed files with 641 additions and 433 deletions.
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"Lua.runtime.version": "Lua 5.1",
"Lua.runtime.builtin": {
"basic": "disable",
"debug": "disable",
"io": "disable",
"math": "disable",
"os": "disable",
"package": "disable",
"string": "disable",
"table": "disable",
"utf8": "disable"
},
"Lua.workspace.library": [
"~\\.vscode\\extensions\\ketho.wow-api-0.16.6\\Annotations"
]
}
7 changes: 3 additions & 4 deletions Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,8 @@ end

function Config:OnInitialize()
--have to check if tsm is loaded before we create the options so that we can use that variable in the options.
GT.tsmLoaded = IsAddOnLoaded("TradeSkillMaster")
GT.ElvUI = IsAddOnLoaded("ElvUI")
GT.tsmLoaded = C_AddOns.IsAddOnLoaded("TradeSkillMaster")
GT.ElvUI = C_AddOns.IsAddOnLoaded("ElvUI")

GT.db = LibStub("AceDB-3.0"):New("GatheringTrackerDB", GT.defaults, true)
GT.db.RegisterCallback(GT, "OnProfileChanged", "RefreshConfig")
Expand Down Expand Up @@ -1288,8 +1288,7 @@ function Config:OnInitialize()
GT:CreateCustomFilterOptions()

local function openOptions()
InterfaceOptionsFrame_OpenToCategory(GT.metaData.name)
InterfaceOptionsFrame_OpenToCategory(GT.metaData.name)
Settings.OpenToCategory(GT.metaData.name, true)
end

SLASH_GatheringTracker1 = "/gatheringtracker"
Expand Down
35 changes: 35 additions & 0 deletions Constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ local expansions = {
}
GT.expansions = expansions

local expansionsOrder = {
[1] = "Classic",
[2] = "BC",
[3] = "Wrath",
[4] = "Cata",
[5] = "MoP",
[6] = "WoD",
[7] = "Legion",
[8] = "BFA",
[9] = "SL",
[10] = "DF",

[11] = "Other",
}

GT.expansionsOrder = expansionsOrder

local categories = {
["Herb"] = 1,
["Ore"] = 2,
Expand All @@ -34,6 +51,24 @@ local categories = {
}
GT.categories = categories

local categoriesOrder = {
[1] = "Herb",
[2] = "Ore",
[3] = "Cloth",
[4] = "Leather",
[5] = "Meat",
[6] = "Fish",
[7] = "Elemental",
[8] = "Gem",
[9] = "Enchanting",
[10] = "Pigment",
[11] = "Legendary",
[12] = "Synthesis",

[13] = "Other",
}
GT.categoriesOrder = categoriesOrder

local ItemData = {
Classic = {
Herb = {
Expand Down
Loading

0 comments on commit a618ac2

Please sign in to comment.