C Programmer Here Too
Math isn't really possible here quite yet, although Deathbane has been doing some interesting stuff that might expose it some more. Personally, I hand edit all my code. Being a programmer, all of my XML code is indented and lined up. I have even gone so far as to add commects to some of the files. I regularly comment out lines and whole blocks of code to try new things.
As far as your question on the decimal points, I think you'll find that many of them are nothing more than crafty coding. No one is extracting individual digits from the numbers/strings. Instead, we are playing tricks with clipping regions of PAGES (or at least, I am). PAGES will automatically clip anything outside of them. For example, let's say:
Current experience (yellow) is : 98%
Experience to next bubble (blue) is : 83%
+---+ +---+
|98%| |83%|
+---+ +---+
In this case, Y is a page and B is a page. Both pages are
large enough to hold the maximum value for their numbers.
Side Note: For this example, the only information that will
render on screen, is that which is displayed
between the plus signs.
So, lets say all we want is two digits from the Y page and
one digit from the B page. That is easy, we just need to
make our pages smaller and let the natural clipping properties
of pages take effect. Just resize the pages to display as
much information as you want.
+--+ +-+
|98% |83%
+--+ +-+
This would now gives us 98 and 8 displaying. Well, what we
really want is 98 and 3. Therefore, all we need to do is shift
the control that displays the B value to the left a little more
(change it's X offset negative). This will bring the digit we
actually want into the viewing area of the page.
+--+ +-+
|98% 83%
+--+ +-+
Now, we have our 98 and our 3. The only thing left is to add
in the decimal point using its own page or text control.
BTW, I left out an important thing which is to make sure you
right align your text fields.
Hope that helps.
|