You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
Since version 1.6 you can easily add Timer bars to the bottom-right corner of the screen.
First, initialize a new TimerBarPool class that will draw all of your bars, and call the Draw(); method on tick.
var myPool = new TimerBarPool();
/* tick function */
myPool.Draw();
Then you can easily add bars to the pool. Currently, TextTimerBar and BarTimerBar are available:
var myTextBar = new TextTimerBar("TIME LEFT", "2:00");
myPool.Add(myTextBar);
var myBar = new BarTimerBar("DISTANCE");
myBar.Percentage = 0.5f; // Half full
myBar.Percentage = 1.0f; // Full bar
myPool.Add(myBar);
// You can easily modify the bar color.
myBar.BackgroundColor = Color.Black;
myBar.ForegroundColor = Color.White;