Add text size measurements.

abilityTooltips
sigonasr2 1 week ago
parent f8c1dbb166
commit 1920038b66
  1. 2
      Adventures in Lestoria/AdventuresInLestoria.cpp

@ -2173,6 +2173,8 @@ void AiL::RenderCooldowns(){
a.iconMouseoverTime+=GetElapsedTime();
if(a.iconMouseoverTime>=1.5f){
const std::string abilityTooltipText{std::format("{}\n{}",GetPlayer())};
const vi2d abilityTooltipSize{GetTextSizeProp(abilityTooltipText)+vi2d{6,6}}; //Add 3 pixel padding to the edges of the tooltip.
}
};

Loading…
Cancel
Save