this:GetParent():SetVerticalScroll(arg1) this.hasLeft = false local thumb = getglobal(this:GetName().."ThumbTexture") if thumb then thumb:SetTexture("Interface\\AddOns\\InstanceJournal\\media\\ui\\minimalist-scrollbar-knob-highlight") end this.hasLeft = true if this.isDragging then return end local thumb = getglobal(this:GetName().."ThumbTexture") if thumb then thumb:SetTexture("Interface\\AddOns\\InstanceJournal\\media\\ui\\minimalist-scrollbar-knob-up") end this.isDragging = true local thumb = getglobal(this:GetName().."ThumbTexture") if thumb then thumb:SetTexture("Interface\\AddOns\\InstanceJournal\\media\\ui\\minimalist-scrollbar-knob-down") end this.isDragging = false local thumb = getglobal(this:GetName().."ThumbTexture") if thumb and this.hasLeft == false then thumb:SetTexture("Interface\\AddOns\\InstanceJournal\\media\\ui\\minimalist-scrollbar-knob-highlight") else thumb:SetTexture("Interface\\AddOns\\InstanceJournal\\media\\ui\\minimalist-scrollbar-knob-up") end this:SetAutoFocus(false) getglobal(this:GetName() .. "Placeholder"):Hide() getglobal(this:GetName() .. "Icon"):SetAlpha(1.0) if this:GetText() ~= "" and string.len(this:GetText()) >= 3 then if IJ_SearchBar_OnTextChanged then IJ_SearchBar_OnTextChanged(this) end end if this:GetText() == "" then getglobal(this:GetName() .. "Placeholder"):Show() getglobal(this:GetName() .. "Icon"):SetAlpha(0.5) getglobal(this:GetName() .. "ClearButton"):Hide() else end if this:GetText() == "" then getglobal(this:GetName() .. "ClearButton"):Hide() else getglobal(this:GetName() .. "ClearButton"):Show() getglobal(this:GetName() .. "ClearButton"):GetNormalTexture():SetAlpha(0.5) end if IJ_SearchBar_OnTextChanged then IJ_SearchBar_OnTextChanged(this) end this:ClearFocus() this:SetText("") this:ClearFocus() if IJ_SearchDropdown then IJ_SearchDropdown:Hide() end IJ_InstanceJournalFrame_OnLoad() IJ_InstanceJournalFrame_OnEvent(event) IJ_InstanceJournalFrame_OnShow() IJ_InstanceJournalFrame_OnHide() this:StartMoving() this:StopMovingOrSizing()