Josh Posted May 19, 2021 Share Posted May 19, 2021 To help developers create new custom widgets I have uploaded the source code for some of the built-in widgets here: https://github.com/Leadwerks/UltraEngine/tree/main/Source/Classes/GUI 3 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...
Josh Posted May 19, 2021 Share Posted May 19, 2021 This will also help: https://www.ultraengine.com/learn/CPP/Widget_AddBlock 1 1 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...
CodeChomper Posted May 19, 2021 Share Posted May 19, 2021 36 minutes ago, Josh said: @CodeChomper In your situation I would recommend a custom widget: https://www.ultraengine.com/learn/CPP/CustomWidgets Would I end up making two custom widgets? One that is like a ListBox to hold the bills and another that is like a WidgetItem to represent the bill? P.S. I am enjoying C++ again thanks to UAK Quote Link to comment Share on other sites More sharing options...
Josh Posted May 19, 2021 Share Posted May 19, 2021 A widget item is not a widget. The widget has a list of items with text and an optional icon or pixmap. You can read the list of items and construct blocks based on that. See the ListBox source code for an example. 1 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...
Josh Posted May 19, 2021 Share Posted May 19, 2021 2 hours ago, CodeChomper said: Here are the bills added to the ListBox BTW, I suggest adding some indentation around the listbox the bills are displayed in. 1 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...
Josh Posted May 19, 2021 Share Posted May 19, 2021 2 hours ago, CodeChomper said: P.S. I am enjoying C++ again thanks to UAK Two interesting things I have noticed recently: The C# wrapper @klepto2 is working on runs C++ examples with very minimal changes. All the file, thread, and other features UAK have really make up a lot to cover that C++ is lacking by default, resulting in something very similar to the built-in C# features. It is confusing why no one has just created a standard library of features for C++. Why am I the only person in the world doing this? 2 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...
CodeChomper Posted May 21, 2021 Share Posted May 21, 2021 Ok, I am getting the hang of custom widgets! Thank you @Josh for posting the widget code on Github! Seeing how you did the original ListBox has really helped me start making my BillListBox. Now each property of a bill is it's own Block in the row and I can adjust the width of each to format the text instead of relying on boost::format( ) since that didn't work with non monospaced fonts. 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted May 23, 2021 Share Posted May 23, 2021 We need more reviews on Steam in order for the rating to show up. Please add your review! 2 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...
Josh Posted May 24, 2021 Share Posted May 24, 2021 Additional documentation for the WidgetBlock class is available here: https://www.ultraengine.com/learn/CPP/WidgetBlock 1 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...
CodeChomper Posted May 24, 2021 Share Posted May 24, 2021 I know UAK uses JSON for themes. Is there a utility in UAK for reading and writing JSON? Quote Link to comment Share on other sites More sharing options...
Josh Posted May 25, 2021 Share Posted May 25, 2021 It includes the nlohmann JSON library. I added a LoadJSON() convenience function. This was only intended for internal use but you can still use it. https://github.com/nlohmann/json 1 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...
CodeChomper Posted May 25, 2021 Share Posted May 25, 2021 10 hours ago, Josh said: It includes the nlohmann JSON library. I added a LoadJSON() convenience function. This was only intended for internal use but you can still use it. https://github.com/nlohmann/json Perfect, I was looking at adding that library, now that I know it is in there I can use it! Thanks again for such a cool tool kit! I added my review to steam. Quote Link to comment Share on other sites More sharing options...
khotan Posted June 25, 2021 Share Posted June 25, 2021 Can make for UAK as skinning UI in look and feel with custom button ? And any example from source code sample ? Quote Link to comment Share on other sites More sharing options...
Josh Posted June 26, 2021 Share Posted June 26, 2021 13 hours ago, khotan said: Can make for UAK as skinning UI in look and feel with custom button ? And any example from source code sample ? https://www.ultraengine.com/learn/CPP/Interface_LoadColorScheme https://www.ultraengine.com/learn/CPP/CustomWidgets 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...
RaiNote Posted June 26, 2021 Share Posted June 26, 2021 Is there a predefined way to have like multiple views and switch between those e.g. switching between different user interfaces? As of now I only see a tricky way of doing something along the lines of this: ui->Hide(); ui->Clear(); ui2->Show(); ui2->Draw(); Quote Link to comment Share on other sites More sharing options...
Josh Posted June 27, 2021 Share Posted June 27, 2021 Maybe this has what you seek?: https://www.ultraengine.com/learn/CPP/CreateTabber 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...
RaiNote Posted June 27, 2021 Share Posted June 27, 2021 12 hours ago, Josh said: Maybe this has what you seek?: https://www.ultraengine.com/learn/CPP/CreateTabber partially yes, partially no as this would limit me to handling and displaying router through tabs. What I'm rather seeking is a simple sceneview system which I myself then could design as in "this button or this action will lead you to this view", in other words a similar design to websites with navbars, hamburger menus and such used to decide what to display. Quote Link to comment Share on other sites More sharing options...
Josh Posted June 27, 2021 Share Posted June 27, 2021 You can create a panel, add widgets to it, and hide and show it based on other things that are clicked. You don't have to use the tabbed panel. 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...
khotan Posted June 28, 2021 Share Posted June 28, 2021 On 6/26/2021 at 6:30 AM, Josh said: https://www.ultraengine.com/learn/CPP/Interface_LoadColorScheme https://www.ultraengine.com/learn/CPP/CustomWidgets Thank you, Josh. Quote Link to comment Share on other sites More sharing options...
CodeChomper Posted August 10, 2021 Share Posted August 10, 2021 I reset my password for UAK and now I can't login. Is there a delay for new passwords to take affect? It has been about 20 mins so far. Thanks. Quote Link to comment Share on other sites More sharing options...
Josh Posted August 10, 2021 Share Posted August 10, 2021 No, but there are some characters that don't seem to be working in passwords. I recommend only using letters and numbers. 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...
CodeChomper Posted August 10, 2021 Share Posted August 10, 2021 19 minutes ago, Josh said: No, but there are some characters that don't seem to be working in passwords. I recommend only using letters and numbers. My bad, I was putting my email in the user name spot of UAK. UserName != Email 1 Quote Link to comment Share on other sites More sharing options...
CodeChomper Posted August 10, 2021 Share Posted August 10, 2021 I haven't seen anything in the docs to make a window always on top? Am I just missing it? Thanks! Quote Link to comment Share on other sites More sharing options...
Josh Posted August 10, 2021 Share Posted August 10, 2021 2 hours ago, CodeChomper said: I haven't seen anything in the docs to make a window always on top? Am I just missing it? Thanks! You will need to dig into WIn32 for this, because it is not consistently supported across all operating systems: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos You want to add WS_EX_TOPMOST into the window extended style. 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...
CppBob Posted September 3, 2021 Share Posted September 3, 2021 Hi @Josh, do have plans to extend the collection of predefined Widgets: i.e. table-Widget, plot-Widget, etc? 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.