tipforeveryone Posted April 27, 2018 Share Posted April 27, 2018 As any others engine features which were introduced in Learn section (Editor Interface, Light, Textures, Materials etc) GUI should be put in there. Newbies need to learn how to use GUI too 1 Quote Link to comment Share on other sites More sharing options...
gamecreator Posted April 27, 2018 Share Posted April 27, 2018 I've mentioned it before that entire sections like Widget (GUI) and Sprite don't have a single C++ example and so you're forced to hunt and pick through whatever the community may have posted, and maybe to convert from Lua to C++ or the reverse, hoping you can figure the code out. Someone was kind enough to post a GUI tutorial but he claims C++ requires Lua, which I don't believe is correct. Quote Link to comment Share on other sites More sharing options...
GorzenDev Posted April 27, 2018 Share Posted April 27, 2018 I agree there needs to be some official tutorial.. Off topic: As for my "claim" that the widget system relies on lua scripts(even by using c++), proof exists and you can easily validate it. run this c++ code and you will see a panel is drawn. rename/remove the script "Scripts/GUI/Panel.lua" and you will see your gui no longer works. the reason for this is because each widget(gui element) its functionality and rendering is done by those scripts. #include "Leadwerks.h" using namespace Leadwerks; int main(int argc, const char *argv[]) { Leadwerks::Window* window = Leadwerks::Window::Create(); Context* context = Context::Create(window); GUI* gui = GUI::Create(context); //this widget no longer works if you rename/remove "Scripts/GUI/Panel.lua" Widget* panel = Widget::Panel(25, 30, 150, 200, gui->GetBase()); while (true) { if (window->Closed() || window->KeyDown(Key::Escape)) return false; context->SetColor(0, 0, 0, 0); context->Clear(); context->Sync(); } return 0; } 1 Quote Link to comment Share on other sites More sharing options...
gamecreator Posted April 27, 2018 Share Posted April 27, 2018 I think I misunderstood you then. I thought you needed to code partly in Lua to use the GUI, which didn't make sense to me. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 28, 2018 Share Posted April 28, 2018 Yes, each widget uses a Lua script to control its behavior and appearance. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Annon1Gaming Posted July 19, 2019 Share Posted July 19, 2019 I agree it would be needed since it is normally around 200 Dollars for the Pro so they should have better tutorials Quote William W. Whitman - Annon1Gaming Link to comment Share on other sites More sharing options...
tipforeveryone Posted July 19, 2019 Author Share Posted July 19, 2019 LOL I have built my own UI system in C++ which can handle any type of language. i dont even use Leadwerks GUI 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.