Skip to content

Commit

Permalink
Applying the latest fix to Npc Colors tab, into Cast Colors tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Dec 23, 2023
1 parent ac07403 commit 2418b40
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Plater_CastColorPanels.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1711,13 +1711,22 @@ function Plater.CreateCastColorOptionsFrame(castColorFrame)
end

--create search box
local latestSearchUpdate = 0
function castFrame.OnSearchBoxTextChanged()
local text = castFrame.AuraSearchTextEntry:GetText()
if (text and string.len (text) > 0) then
IsSearchingFor = text:lower()
else
IsSearchingFor = nil
end

if (latestSearchUpdate + 0.01 > GetTime()) then
return
end

latestSearchUpdate = GetTime()
spells_scroll.offset = 0
spells_scroll:OnVerticalScroll(spells_scroll.offset)
spells_scroll:Refresh()
end

Expand Down

0 comments on commit 2418b40

Please sign in to comment.