26 #if defined(_WIN32) && defined(HR_ENGINE_SHARED) 28 # define MR_DllDeclare __declspec( dllexport ) 30 # define MR_DllDeclare __declspec( dllimport ) 33 # define MR_DllDeclare 60 Counter(
Display &display,
const std::string &title,
double initValue,
61 double total = NO_TOTAL);
65 void OnHudRescaled(
const Vec2 &hudScale)
override;
70 void SetValue(
double value);
78 void SetTotal(
double total);
80 bool IsTotalHidden()
const;
84 void Layout()
override;
92 std::shared_ptr<FillBox>
bg;
std::shared_ptr< Label > titleLbl
Definition: Counter.h:93
Base class for UI (2D) components.
Definition: UiViewModel.h:56
std::shared_ptr< ActiveText > valueLbl
Definition: Counter.h:94
static const double NO_TOTAL
Indicator that the total should not be displayed.
Definition: Counter.h:57
double value
Definition: Counter.h:89
std::shared_ptr< FillBox > bg
Definition: Counter.h:92
Base class for display managers.
Definition: Display.h:73
double total
Definition: Counter.h:90
virtual ~Counter()
Definition: Counter.h:62
Base view model for elements of the heads-up display.
Definition: HudDecor.h:58
HUD lap / score / whatever counter.
Definition: Counter.h:52
bool valueChanged
Definition: Counter.h:91
double GetTotal() const
Retrieve the total value.
Definition: Counter.h:77
Definition: Announcement.h:24
#define MR_DllDeclare
Definition: Counter.h:33
MR_Int64 timestamp_t
Definition: OS.h:55
double GetValue() const
Retrieve the current value.
Definition: Counter.h:69