Etterna 0.74.4
Loading...
Searching...
No Matches
CommonMetrics.h
1#ifndef COMMON_METRICS_H
2#define COMMON_METRICS_H
3
4#include "Difficulty.h"
5#include "GameConstantsAndTypes.h"
6#include "LocalizedString.h"
7#include "ThemeMetric.h"
8
9// Types
10class ThemeMetricDifficultiesToShow : public ThemeMetric<std::string>
11{
12 public:
14 : m_v()
15 {
16 }
17 ThemeMetricDifficultiesToShow(const std::string& sGroup,
18 const std::string& sName);
19 void Read() override;
20 auto GetValue() const -> const std::vector<Difficulty>&;
21
22 private:
23 std::vector<Difficulty> m_v;
24};
25class ThemeMetricStepsTypesToShow : public ThemeMetric<std::string>
26{
27 public:
29 : m_v()
30 {
31 }
32 ThemeMetricStepsTypesToShow(const std::string& sGroup,
33 const std::string& sName);
34 void Read() override;
35 auto GetValue() const -> const std::vector<StepsType>&;
36
37 private:
38 std::vector<StepsType> m_v;
39};
40
45namespace CommonMetrics {
47extern ThemeMetric<std::string> OPERATOR_MENU_SCREEN;
49extern ThemeMetric<std::string> DEFAULT_MODIFIERS;
51extern LocalizedString WINDOW_TITLE;
53extern ThemeMetric<float> TICK_EARLY_SECONDS;
55extern ThemeMetric<std::string> DEFAULT_NOTESKIN_NAME;
57extern ThemeMetricDifficultiesToShow DIFFICULTIES_TO_SHOW;
63extern ThemeMetricStepsTypesToShow STEPS_TYPES_TO_SHOW;
65extern ThemeMetric<bool> AUTO_SET_STYLE;
67extern ThemeMetric<int> PERCENT_SCORE_DECIMAL_PLACES;
68
69extern ThemeMetric<std::string> IMAGES_TO_CACHE;
70
71auto
72LocalizeOptionItem(const std::string& s, bool bOptional) -> std::string;
73} // namespace CommonMetrics;
74
75#endif
Get a String based on the user's natural language.
Definition LocalizedString.h:13
Definition CommonMetrics.h:11
void Read() override
Actually read the metric and get its data.
Definition CommonMetrics.cpp:44
Definition CommonMetrics.h:26
void Read() override
Actually read the metric and get its data.
Definition CommonMetrics.cpp:113
The theme specific data.
Definition ThemeMetric.h:52
Definitions of metrics that are in the "Common" group.
Definition CommonMetrics.h:45