settings: Add UiGeneral class
This commit is contained in:
parent
ea4afbfc54
commit
464aad52cd
4 changed files with 16 additions and 7 deletions
|
@ -144,6 +144,9 @@ float Volume() {
|
|||
return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault());
|
||||
}
|
||||
|
||||
Linkage::Linkage() = default;
|
||||
Linkage::~Linkage() = default;
|
||||
|
||||
const char* TranslateCategory(Category category) {
|
||||
switch (category) {
|
||||
case Category::Audio:
|
||||
|
@ -176,6 +179,7 @@ const char* TranslateCategory(Category category) {
|
|||
case Category::Controls:
|
||||
return "Controls";
|
||||
case Category::Ui:
|
||||
case Category::UiGeneral:
|
||||
return "UI";
|
||||
case Category::UiLayout:
|
||||
return "UiLayout";
|
||||
|
|
|
@ -143,6 +143,7 @@ enum class Category : u32 {
|
|||
AddOns,
|
||||
Controls,
|
||||
Ui,
|
||||
UiGeneral,
|
||||
UiLayout,
|
||||
UiGameList,
|
||||
Screenshots,
|
||||
|
@ -209,8 +210,10 @@ public:
|
|||
|
||||
class Linkage {
|
||||
public:
|
||||
std::map<Category, std::forward_list<BasicSetting*>> by_category;
|
||||
std::vector<std::function<void()>> restore_functions;
|
||||
explicit Linkage();
|
||||
~Linkage();
|
||||
std::map<Category, std::forward_list<BasicSetting*>> by_category{};
|
||||
std::vector<std::function<void()>> restore_functions{};
|
||||
u32 count;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue