View Single Post
  #5  
Unread 11-21-2004, 02:09 PM
Prelector Prelector is offline
A Young Mystail Rat
 
Join Date: Nov 2004
Server: Blackburrow
Posts: 7
Default

Ok, figured out A way of doing it... not sure it's the best way, but it works...

I break the exp number up into 3 fields:

GameData.Self.ExperienceCurrent - Number to left of decimal point - Right Justified and offset to the right to cover the %
. - Decimal point as text fiend
GameData.Self.ExperienceBubble - Number to right of decimal point - Right Justified

Take the ExperienceCurrent and . fields, and change the background opacity to 1.0000, and make their fields overlap the ExperienceBubble field.

EXAMPLE:

<Text BackgroundOpacity="1.000" DynamicData="/GameData.Self.ExperienceCurrent" Font="/Fonts.FontArialBold15" LocalText="99%" Location="238,40" Margin="0,0,-9,0" Name="ExpToNextLevel" ScrollExtent="20,15" Size="20,15" TextAlignment="Right" TextAlignmentVertical="Center">99%</Text>
<Text BackgroundOpacity="1.000" Font="/Fonts.FontArialBold15" LocalText="." Location="256,40" Name="TextDecimal" ScrollExtent="5,15" Size="5,15">.</Text>
<Text DynamicData="/GameData.Self.ExperienceBubble" Font="/Fonts.FontArialBold15" LocalText="99%" Location="251,40" Name="ExpDecimal" ScrollExtent="27,15" Size="27,15" TextAlignment="Right" TextAlignmentVertical="Center">99%</Text>

Hope that helps anyone looking for this
Reply With Quote