public static string TextMax(UI_ProgressBarC bar) { return(string.Format("{0}", "MAX")); }
public static string TextRange(UI_ProgressBarC bar) { return(string.Format("{0} / {1}", (int)bar.Value, (int)bar.Max)); }
public static string TextNone(UI_ProgressBarC bar) { return(string.Empty); }
public static string TextPercent(UI_ProgressBarC bar) { return(string.Format("{0}%", Mathf.FloorToInt(100 * bar.Value / bar.Max))); }
public static string TextPercent(UI_ProgressBarC bar) { return(string.Format("{0:P0}", (double)bar.Value / bar.Max)); }