View Single Post
09-08-12, 05:41 AM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by eponine View Post
I'm wondering if anybody knows if I can change the keybinding font by going into the dominos LUA, and if so, which file?
In bindableButton.lua, find this line, near the top:
Code:
function BindableButton:UpdateHotkey(buttonType)
After it, add a new line:
Code:
	_G[self:GetName()..'HotKey']:SetFont("Fonts\\FRIZQT__.ttf", 18, "OUTLINE")
See the SetFont documentation for info about the parameters.

In actionButton.lua, find this line, near the bottom:
Code:
function ActionButton:UpdateMacro()
After it, add a new line:
Code:
	_G[self:GetName() .. 'Name']:SetFont("Fonts\\FRIZQT__.ttf", 18, "OUTLINE")
In the same places, you could move the text around with ClearAllPoints and SetPoint.

You could also check which button the bar was on, to conditionally show/hide the text only for some bars, but that's more digging through the code of an addon I don't use than I want to do right now, so hopefully someone else can write it up for you, or you can try to figure it out yourself.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote