MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / ThemesMenuLayout

Method ThemesMenuLayout

projects/uMenu/source/ul/menu/ui/ui_ThemesMenuLayout.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace ul::menu::ui {
10
11 ThemesMenuLayout::ThemesMenuLayout() : IMenuLayout() {
12 this->info_text = pu::ui::elm::TextBlock::New(0, 0, GetLanguageString("theme_info_text"));
13 this->info_text->SetColor(g_MenuApplication->GetTextColor());
14 g_GlobalSettings.ApplyConfigForElement("themes_menu", "info_text", this->info_text);
15 this->Add(this->info_text);
16
17 this->themes_menu = pu::ui::elm::Menu::New(0, 0, ThemesMenuWidth, g_MenuApplication->GetMenuBackgroundColor(), g_MenuApplication->GetMenuFocusColor(), ThemesMenuItemSize, ThemesMenuItemsToShow);
18 g_GlobalSettings.ApplyConfigForElement("themes_menu", "themes_menu", this->themes_menu);
19 this->Add(this->themes_menu);
20 }
21
22 void ThemesMenuLayout::LoadSfx() {
23 this->theme_change_sfx = pu::audio::LoadSfx(TryGetActiveThemeResource("sound/Themes/ThemeChange.wav"));

Callers

nothing calls this directly

Calls 6

GetTextColorMethod · 0.80
ApplyConfigForElementMethod · 0.80
AddMethod · 0.80
GetMenuFocusColorMethod · 0.80
GetLanguageStringFunction · 0.70

Tested by

no test coverage detected