@ -30,7 +30,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE .
Portions of this software are copyright © 2023 The FreeType
Portions of this software are copyright <EFBFBD> 2023 The FreeType
Project ( www . freetype . org ) . Please see LICENSE_FT . txt for more information .
All rights reserved .
*/
@ -89,12 +89,21 @@ protected:
std : : string percentageSign = attr . DisplayAsPercent ( ) ? " % " : " " ;
window . DrawShadowStringDecal ( drawPos + vf2d { maxAttributeLabelSize + 4 + 24 , yOffset } , std : : format ( " {:>5} ->#00AA00 {:<5} " ,
attr . ShowAsDecimal ( ) ? std : : format ( " {:>4.2f}{} " , value , percentageSign ) : std : : format ( " {}{} " , value , percentageSign ) ,
nextStageValue ! = 0 ?
attr . ShowAsDecimal ( ) ? std : : format ( " {:<4.2f}{} " , nextStageValue , percentageSign ) : std : : format ( " {}{} " , nextStageValue , percentageSign )
: " MAX " ) ,
WHITE , BLACK , adjustedScale , fitToLabel ? std : : numeric_limits < float > : : max ( ) : rect . size . x , 1.0f ) ;
if ( Inventory : : GetItemCount ( itemRef . lock ( ) - > ActualName ( ) ) = = 0 ) { //This item hasn't been created yet, so just show that we are developing the item first.
window . DrawShadowStringDecal ( drawPos + vf2d { maxAttributeLabelSize + 4 + 24 , yOffset } , std : : format ( " {:<5} " ,
attr . ShowAsDecimal ( ) ? std : : format ( " {:>4.2f}{} " , value , percentageSign ) : std : : format ( " {}{} " , value , percentageSign ) ,
nextStageValue ! = 0 ?
attr . ShowAsDecimal ( ) ? std : : format ( " {:<4.2f}{} " , nextStageValue , percentageSign ) : std : : format ( " {}{} " , nextStageValue , percentageSign )
: " MAX " ) ,
WHITE , BLACK , adjustedScale , fitToLabel ? std : : numeric_limits < float > : : max ( ) : rect . size . x , 1.0f ) ;
} else { //This item is getting enhanced to the next level.
window . DrawShadowStringDecal ( drawPos + vf2d { maxAttributeLabelSize + 4 + 24 , yOffset } , std : : format ( " {:>5} ->#00AA00 {:<5} " ,
attr . ShowAsDecimal ( ) ? std : : format ( " {:>4.2f}{} " , value , percentageSign ) : std : : format ( " {}{} " , value , percentageSign ) ,
nextStageValue ! = 0 ?
attr . ShowAsDecimal ( ) ? std : : format ( " {:<4.2f}{} " , nextStageValue , percentageSign ) : std : : format ( " {}{} " , nextStageValue , percentageSign )
: " MAX " ) ,
WHITE , BLACK , adjustedScale , fitToLabel ? std : : numeric_limits < float > : : max ( ) : rect . size . x , 1.0f ) ;
}
yOffset + = 16 ;
}
} else {