Skip to content

Class LemonUI::TimerBars::TimerBar

ClassList > LemonUI > TimerBars > TimerBar

Represents a Bar with text information shown in the bottom right.

Inherits the following classes: LemonUI::IDrawable

Inherited by the following classes: LemonUI::TimerBars::TimerBarObjective, LemonUI::TimerBars::TimerBarProgress

Public Properties

Type Name
property Color Color
The color of the information text.
property string?? Info
The information shown on the right.
property float InfoWidth
The Width of the information text.
property string?? Title
The title of the bar, shown on the left.

Public Functions

Type Name
virtual void Draw ()
Draws the timer bar information.
virtual void Recalculate (PointF pos)
Recalculates the position of the timer bar elements based on the location of it on the screen.
TimerBar (string title, string info)
Creates a new TimerBar with the specified Title and Value.

Public Functions inherited from LemonUI::IDrawable

See LemonUI::IDrawable

Type Name
void Draw ()
Draws the item on the screen.

Public Properties Documentation

property Color

Color LemonUI.TimerBars.TimerBar.Color;

property Info

string?? LemonUI.TimerBars.TimerBar.Info;

property InfoWidth

float LemonUI.TimerBars.TimerBar.InfoWidth;

property Title

string?? LemonUI.TimerBars.TimerBar.Title;

Public Functions Documentation

function Draw

inline virtual void LemonUI::TimerBars::TimerBar::Draw () 

Implements LemonUI::IDrawable::Draw

function Recalculate

Recalculates the position of the timer bar elements based on the location of it on the screen.

inline virtual void LemonUI::TimerBars::TimerBar::Recalculate (
    PointF pos
) 

Parameters:

  • pos The Top Left position of the Timer Bar.

function TimerBar

Creates a new TimerBar with the specified Title and Value.

inline LemonUI::TimerBars::TimerBar::TimerBar (
    string title,
    string info
) 

Parameters:

  • title The title of the bar.
  • info The information shown on the bar.

The documentation for this class was generated from the following file repos/LemonUI/LemonUI/TimerBars/TimerBar.cs