Skip to content

Instantly share code, notes, and snippets.

@ryuukk
Last active March 24, 2024 20:23
Show Gist options
  • Save ryuukk/6a7b34a68659143953f655c2ea755df9 to your computer and use it in GitHub Desktop.
Save ryuukk/6a7b34a68659143953f655c2ea755df9 to your computer and use it in GitHub Desktop.
  • put this after the block for: -- active shortcut
			-- all shortcut
			sx = x + width - (16*3) - (2*3)
			SetDrawColor(1,1,1)
			if allHover then
				DrawImage(icon_sort_disabled_hover, sx, y, 16, height)
			else
				DrawImage(icon_sort_disabled, sx, y, 16, height)
			end
  • and this that replaces the block at: -- for filter overlay buttons
	-- for filter overlay buttons
	local x, y = self:GetPos()
	local width, height = self:GetSize()
	local cursorX, cursorY = GetCursorPos()
	if cursorX > (x + width - 18) then
		self.bypassSort = false
		self.mode = "support"
		self:PopulateGemList()
	elseif (cursorX > (x + width - 40) and cursorX < (cursorX + width - 20)) then
		self.bypassSort = false
		self.mode = "grants_active_skill"
		self:PopulateGemList()
	elseif (cursorX > (x + width - 60) and cursorX < (cursorX + width - 40)) then
		self.bypassSort = true
		self.mode = ""
		self:PopulateGemList()
	else
		self.bypassSort = false
	end
  • after altQuatMap variable:
local icon_sort_disabled
local icon_sort_disabled_hover
  • at the end of newClass function
	if icon_sort_disabled == nil then
		icon_sort_disabled = NewImageHandle()
		icon_sort_disabled_hover = NewImageHandle()
		icon_sort_disabled:Load("Assets/ui_sort_disabled.png")
		icon_sort_disabled_hover:Load("Assets/ui_sort_disabled_hover.png")
	end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment