Ok... I will try to explain with my "excellent" english (nah, i'm bad with).
I have a network meter, but the download/upload rate is center with:
Code: Select all
StringAlign=CENTER
Very hard to explain in english for me.... Sorry!
Code: Select all
StringAlign=CENTER
Welp, I know of a bad way...jsmorley wrote:I don't know of any good way to do this.
I'm pretty sure the String measure is not going to have the AutoScale applied to it.SilverAzide wrote:Welp, I know of a bad way...
Take the string output of the measure, say "386.9 k/s" like in your screenshot. Use two string measures to split the string on the decimal, so you have something like "386" and ".9 k/s" as the two resulting strings. Now to display the result, you need 2 string meters. The first meter shows the integer portion, with right-justification. The second meter is left justified and relatively-positioned to follow the first, showing the decimal portion. Kind of like this 386.9 k/s. The end result will be that the decimal point does not move. Not sure it is worth that much effort, but it's one way that works.
Oh yeah, forgot about that. I know a way to do it with Lua, but after that I'm out of ideas.jsmorley wrote:I'm pretty sure the String measure is not going to have the AutoScale applied to it.
I think it would have to be done in Lua, getting the raw number value of the Net measure, applying auto-scaling and decimal places defining in Lua, stripping off and remembering the scale postfix, breaking the scaled number into "trunc" and "frac" as strings, adding the scale posfix to the "frac" string, and sending both as Text options to the two String meters.SilverAzide wrote:Oh yeah, forgot about that. I know a way to do it with Lua, but after that I'm out of ideas.
Yep, I think that pretty much means Lua is his only option.jsmorley wrote:...Any String measure that asks for the string value of the original measure will be getting the raw string value of the number, with no AutoScale applied, and the Substitute, whether on the original measure or the String measure, will fail.