MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / OwnSettingsLayout

Method OwnSettingsLayout

Goldleaf/source/ui/ui_OwnSettingsLayout.cpp:145–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 }
144
145 OwnSettingsLayout::OwnSettingsLayout() : pu::ui::Layout() {
146 this->settings_menu = pu::ui::elm::Menu::New(0, 280, pu::ui::render::ScreenWidth, g_Settings.GetColorScheme().menu_base, g_Settings.GetColorScheme().menu_base_focus, g_Settings.json_settings.ui.value().menu_item_size.value(), ComputeDefaultMenuItemCount(g_Settings.json_settings.ui.value().menu_item_size.value()));
147 g_Settings.ApplyToMenu(this->settings_menu);
148 this->UpdateSettings(true);
149 this->Add(this->settings_menu);
150
151 this->SetOnInput(std::bind(&OwnSettingsLayout::OnInput, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
152 }
153
154 void OwnSettingsLayout::UpdateSettings(const bool reset_selected_idx) {
155 g_Settings.ApplyToMenu(this->settings_menu);

Callers

nothing calls this directly

Calls 3

UpdateSettingsMethod · 0.95
ApplyToMenuMethod · 0.80

Tested by

no test coverage detected