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

Method DoLoadMenuData

Goldleaf/source/ui/ui_MainApplication.cpp:36–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 void MainApplication::DoLoadMenuData(const std::string &name, pu::sdl2::TextureHandle::Ref img, const std::string &temp_head) {
37 if(this->menu_img != nullptr) {
38 this->menu_img->SetVisible(true);
39 this->menu_img->SetImage(img);
40 this->menu_img->SetWidth(135);
41 this->menu_img->SetHeight(135);
42 }
43 if(this->menu_name_text != nullptr) {
44 this->menu_name_text->SetVisible(true);
45 this->menu_name_text->SetText(name);
46 }
47 if(this->menu_head_text != nullptr) {
48 this->menu_head_text->SetVisible(true);
49 this->LoadMenuHead(temp_head);
50 }
51 }
52
53 void MainApplication::helpImage_OnClick() {
54 this->DisplayDialog(cfg::Strings.GetString(162), cfg::Strings.GetString(342) + "\n\n" + cfg::Strings.GetString(343) + "\n" + cfg::Strings.GetString(344) + "\n" + cfg::Strings.GetString(345) + "\n" + cfg::Strings.GetString(346) + "\n" + cfg::Strings.GetString(347), {cfg::Strings.GetString(234)}, false);

Callers 2

LoadMenuDataMethod · 0.95
PopMenuDataMethod · 0.95

Calls 4

LoadMenuHeadMethod · 0.95
SetImageMethod · 0.80
SetWidthMethod · 0.80
SetHeightMethod · 0.80

Tested by

no test coverage detected