Forged Alliance Forever Forged Alliance Forever Forums 2016-09-09T07:09:17+02:00 /feed.php?f=2&t=13042 2016-09-09T07:09:17+02:00 2016-09-09T07:09:17+02:00 /viewtopic.php?t=13042&p=134927#p134927 <![CDATA[Re: How to make hit points/ shields digit values smaller?]]> If you decide to hook the file and change the function, have in mind to check this after each FAF update.

In case you want this to be implemented into the FAF maingame, you can start an issue on github:
https://github.com/FAForever/fa/issues

Name it something like "Tooltip enhancement for big numbers"

Statistics: Posted by Uveso — 09 Sep 2016, 07:09


]]>
2016-09-09T06:51:51+02:00 2016-09-09T06:51:51+02:00 /viewtopic.php?t=13042&p=134926#p134926 <![CDATA[Re: How to make hit points/ shields digit values smaller?]]> ShieldNo1.png
ShieldNo2.png

Well you have to change the function "Show()" inside "unitviewDetail.lua"
Search for this code:
Code:
    local showShield = false
    if bp.Defense.Shield and bp.Defense.Shield.ShieldMaxHealth then
        showShield = true
        View.ShieldStat.Value:SetText(bp.Defense.Shield.ShieldMaxHealth)
    end


then add this line to set the fontsize to 10:
Code:
        View.ShieldStat.Value:SetFont(UIUtil.bodyFont, 10)


should look like this now:
Code:
    local showShield = false
    if bp.Defense.Shield and bp.Defense.Shield.ShieldMaxHealth then
        showShield = true
        View.ShieldStat.Value:SetFont(UIUtil.bodyFont, 10)
        View.ShieldStat.Value:SetText(bp.Defense.Shield.ShieldMaxHealth)
    end


This is the only way to make the text smaller.

Statistics: Posted by Uveso — 09 Sep 2016, 06:51


]]>
2016-08-31T23:24:07+02:00 2016-08-31T23:24:07+02:00 /viewtopic.php?t=13042&p=134104#p134104 <![CDATA[How to make hit points/ shields digit values smaller?]]> 99 999 same with shields. This is when the unit is in the engineer selection not the unit itself. Thanks !

Statistics: Posted by djambalaz — 31 Aug 2016, 23:24


]]>