Thread Tools Display Modes
11-06-22, 03:01 PM   #1
Nunya86
A Defias Bandit
Join Date: Nov 2022
Posts: 2
Bartender4 - Change hotkey, stack and ability text, position and color

I am looking for some help on this if anyone has this working with retail Dragonflight.

I was trying to use this that was posted a long time ago by Phanx but can't seem to get it to work at all.

Code:
local LAB = LibStub("LibActionButton-1.0", true)
if LAB then
	-- Bartender4
	LAB.RegisterCallback("FixFonts", "OnButtonCreated", function(_, self)
		--print("OnButtonCreated", self:GetName())
		local scale = self:GetParent():GetScale()
		local hotkey = _G[self:GetName() .. "HotKey"]
		if hotkey then
			local font, size = NumberFontNormal:GetFont()
			hotkey:SetFont(font, size / scale, "OUTLINE")
		end
		local count = _G[self:GetName() .. "Count"]
		if count then
			local font, size = NumberFontNormal:GetFont()
			count:SetFont(font, size / scale, "OUTLINE")
		end
		local macro = _G[self:GetName() .. "Name"]
		if macro then
			local font, size = GameFontHighlight:GetFont()
			macro:SetFont(font, size / scale, "OUTLINE")
		end
	end)
end
------------------------------------------------------

I was able to get this working kind of, this would change the font size and vertical position but that is is.

AddOns\Bartender4\libs\LibActionButton-1.0\LibActionButton-1.0.lua

-- adjust hotkey style for better readability
button.HotKey:SetFont("Fonts\\\\BT4font.ttf", 18, "OUTLINE")
button.HotKey:SetVertexColor(0.75, 0.75, 0.75)
button.HotKey:SetPoint("TOPLEFT", button, "TOPLEFT", 0, 0)


-- adjust count/stack size
button.Count:SetFont("Fonts\\\\BT4font.ttf", 18, "OUTLINE")




Any help with adjusting/editing the font, position, size and color would greatly appreciated.
  Reply With Quote
11-08-22, 10:51 AM   #2
Nunya86
A Defias Bandit
Join Date: Nov 2022
Posts: 2
The latest version of BT4 has all of this in it. Thank you addon dev for BT4 you are awesome.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Bartender4 - Change hotkey, stack and ability text, position and color

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off