Acnologia
-
Posts
2 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by Acnologia
-
-
GUI* gui = GUI::Create(context);
Widget* base = gui->GetBase();base->SetScript("Scripts/GUI/Panel.lua");
Widget* button = Widget::Button("Spawn", 20, 20, 100, 40, base);
button->SetScript("Scripts/GUI/Button.lua");Image* img = new Image();
std::cout << img->Initialize(L"Materials/Developer/bluegrid.tex") << std::endl;
button->SetImage(img);I used standard lua scripts.
I can't add the button with image via c++
in Programming
Posted
Thanks