Dominos

Dominos

19M Downloads

Dominos Keybind Text (Resolved)

Jeirs opened this issue ยท 4 comments

commented

Hello before dominos update for pre-patch

I used to use this

_G[self:GetName()..'HotKey']:SetFont("Fonts\\FRIZQT__.ttf", 18, "OUTLINE")

to change the hotkey text in the bindableButton.lua

With the new update , can someone help me with the lua?
Thank you.

commented

Maybe something like this?

hooksecurefunc(Dominos.BindableButton, "AddQuickBindingSupport", function(button)
    button.HotKey:SetFont("Fonts\\FRIZQT__.ttf", 18, "OUTLINE")
end)
commented

In which line number should I be inserting the code , Tuller?

I tried inserting the code you provided after line 201 function BindableButton:UpdateHotkeys()

But I am getting attempt to index field 'Hotkey' (a nil value)
Screenshot_4

commented

Just generally towards the end of the file (or even in a separate addon that's dependent on Dominos). I think the call should actually be:

hooksecurefunc(Dominos.BindableButton, "AddQuickBindingSupport", function(self, button)
    button.HotKey:SetFont("Fonts\\FRIZQT__.ttf", 18, "OUTLINE")
end)
commented

Hello Tuller , thank you for the help.
It is working wonderfully.

Screenshot_6