Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Snakybo committed May 1, 2024
1 parent 64ddad3 commit 627562d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ read_globals = {
"GetNumTalents",
"GetNumTalentTabs",
"GetPetActionInfo",
"GetPrimaryTalentTree",
"GetPvpTalentInfoByID",
"GetRealmName",
"GetRealZoneText",
Expand All @@ -105,11 +106,14 @@ read_globals = {
"GetSpecialization",
"GetSpecializationInfo",
"GetSpecializationInfoByID",
"GetSpecializationInfoForClassID",
"GetSpecializationInfoForSpecID",
"GetSpellBookItemInfo",
"GetSpellBookItemName",
"GetSpellInfo",
"GetSpellSubtext",
"GetSpellTabInfo",
"GetTalentTabInfo",
"GetTalentInfo",
"GetTalentInfoByID",
"GetTime",
Expand Down
46 changes: 23 additions & 23 deletions Clicked/Config/Bindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2480,21 +2480,21 @@ local function DrawLoadSpecialization(container, specialization, classNames)
DrawTristateLoadOption(container, Addon.L["Talent specialization"], items, order, specialization)
end

--- @param container AceGUIContainer
--- @param specialization Binding.TriStateLoadOption
local function Classic_DrawLoadSpecialization(container, specialization)
local items = {
[1] = Addon.L["Primary Specialization"],
[2] = Addon.L["Secondary Specialization"]
}

local order = {
1,
2
}

DrawTristateLoadOption(container, Addon.L["Talent specialization"], items, order, specialization)
end
-- --- @param container AceGUIContainer
-- --- @param specialization Binding.TriStateLoadOption
-- local function Classic_DrawLoadSpecialization(container, specialization)
-- local items = {
-- [1] = Addon.L["Primary Specialization"],
-- [2] = Addon.L["Secondary Specialization"]
-- }

-- local order = {
-- 1,
-- 2
-- }

-- DrawTristateLoadOption(container, Addon.L["Talent specialization"], items, order, specialization)
-- end

--- @param container AceGUIContainer
--- @param talent Binding.MutliFieldLoadOption
Expand All @@ -2503,13 +2503,13 @@ local function DrawLoadTalent(container, talent, specializations)
DrawTalentSelectOption(container, Addon.L["Talent selected"], specializations, talent, "talents")
end

--- @param container AceGUIContainer
--- @param talent Binding.TriStateLoadOption
--- @param classes string[]
local function Classic_DrawLoadTalent(container, talent, classes)
local items, order = Addon:Classic_GetLocalizedTalents(classes)
DrawTristateLoadOption(container, Addon.L["Talent selected"], items, order, talent)
end
-- --- @param container AceGUIContainer
-- --- @param talent Binding.TriStateLoadOption
-- --- @param classes string[]
-- local function Classic_DrawLoadTalent(container, talent, classes)
-- local items, order = Addon:Classic_GetLocalizedTalents(classes)
-- DrawTristateLoadOption(container, Addon.L["Talent selected"], items, order, talent)
-- end

--- @param container AceGUIContainer
--- @param talent Binding.MutliFieldLoadOption
Expand Down Expand Up @@ -2946,7 +2946,7 @@ local function CreateFromItemTemplate(identifier)
local group

if Addon.EXPANSION_LEVEL >= Addon.EXPANSION.CATA then
local name, icon
local _, name, icon

if Addon.EXPANSION_LEVEL >= Addon.EXPANSION.MOP then
_, name, _, icon = GetSpecializationInfo(GetSpecialization())
Expand Down

0 comments on commit 627562d

Please sign in to comment.