Ability to change font, font size, outline for buttons #101


  • Accepted
Closed
Assigned to nevcairiel
  • Forge_User_72189262 created this issue Mar 21, 2009

    What is the enhancement in mind? How should it look and feel?

    What I'd like to ask is for some configuration options on fonts used for hotkey, macro and count text used on BT4's action bars.

    Please provide any additional information below.

    Currently I've been doing it manually by hacking actionbutton.lua with these 3 lines:

    button.macroName:SetFont("Fonts\\ARIALN.ttf", 12, "OUTLINE")
    button.hotkey:SetFont("Fonts\\ARIALN.ttf", 12, "OUTLINE")
    button.count:SetFont("Fonts\\ARIALN.ttf", 12, "OUTLINE")
    

    But I'd prefer if possible to be able to do it through the addon's configuration frame so I won't have to edit actionbutton.lua after an update.

  • Forge_User_72189262 added the tags New Enhancment Mar 21, 2009
  • nevcairiel posted a comment Mar 26, 2009

    I'll consider this as an option for 4.3.0.

  • nevcairiel removed a tag New Mar 26, 2009
  • nevcairiel added a tag Accepted Mar 26, 2009
  • _ForgeUser39737 posted a comment Apr 6, 2009

    I've just added that myself, very nice. Don't suppoes you know how to change the color? i.e. I'm trying to get my hotkeys in yellow

  • _ForgeUser1712387 posted a comment Apr 22, 2009

    I would like to see that feature too! :)

  • _ForgeUser2979457 posted a comment Mar 5, 2010

    @NarusegawaNaru

    I think it would be an improvement to also choose the color in the configuartion menu.

    With /script BT4Button1.hotkey:SetVertexColor(r,g,b,1) I changed the color of the first button, but I dont know how to change all hotkey colors, I'm trying it at the moment with a KgPanels script

    edit: it works with the kgpanel script, but not with onLoad


    Edited Mar 5, 2010
  • Forge_User_72189262 posted a comment Apr 9, 2010
    button.hotkey:SetVertexColor(r,g,b,1)
    
    button.macroName:SetVertexColor(r,g,b,1)
    
    button.count:SetVertexColor(r,g,b,1)
    

    I suppose adding the above lines to actionbutton.lua, depending on what you need colored, should do the trick.

  • nevcairiel posted a comment Jul 15, 2010

    This has been put on the roadmap for 4.5.0

  • Forge_User_38634235 posted a comment Oct 12, 2010

    Any chances to also add an option to set custom text position offsets?

  • nevcairiel posted a comment Oct 12, 2010

    Custom text positions are something i won't do. ButtonFacade should do that, if anyone.

  • lyngris posted a comment Aug 16, 2011

    Any update on this?

  • nevcairiel posted a comment Aug 28, 2012

    The default font for hotkeys was just changed to use a more readable font. Fine-grained options are still a possibility for the future

  • _ForgeUser590047 posted a comment Aug 31, 2012

    Hi, i would try to fix this on my own, but since there is no actionbutton.lua anymore, i dont know where or what to add to use my custom font.

    Im not asking for an implementation, but a short hint (for a non lua familiar) how to change the font from the hotkeys, counts and macronames. regards Groar


    Edited Nov 22, 2012
  • _ForgeUser1925039 posted a comment Nov 22, 2012

    Trying to modify my action bar fonts as well

    button.macroName:SetFont("Fonts
    ARIALN.ttf", 12, "OUTLINE") button.hotkey:SetFont("Fonts
    ARIALN.ttf", 12, "OUTLINE") button.count:SetFont("Fonts
    ARIALN.ttf", 12, "OUTLINE")

    this code throws errors on account of there no longer being an "actionbutton.lua"

    any updates?

  • nevcairiel closed issue Nov 4, 2022
  • nevcairiel posted a comment Nov 4, 2022

    This will be implemented in the next version.


To post a comment, please login or register a new account.