Vida Marcell Posted March 25, 2022 Posted March 25, 2022 this happens after pushing the "ambient" button. The software also crashes. code: auto removal_p = CreatePanel(0, gap, sz.x - 684, 162, delit_p, PANEL_GROUP); removal_p->SetText("Removal"); auto dir_m = CreateButton("Directional", 0, gap, 120, 30, removal_p, BUTTON_RADIO); dir_m->SetState(WIDGETSTATE_SELECTED); auto amb_m = CreateButton("Ambient", 100, gap, 120, 30, removal_p, BUTTON_RADIO);
Josh Posted September 6, 2023 Posted September 6, 2023 Program is going into an infinite loop...one moment... #include "UltraEngine.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Ultra Engine", 0, 0, 800, 600, displays[0], WINDOW_TITLEBAR | WINDOW_RESIZABLE); //Create User Interface auto ui = CreateInterface(window); //Create widget auto sz = ui->root->ClientSize(); int gap = 20; auto removal_p = CreatePanel(0, gap, sz.x - 50, 162, ui->root, PANEL_GROUP); removal_p->SetText("Removal"); auto dir_m = CreateButton("Directional", 0, gap, 120, 30, removal_p, BUTTON_RADIO); dir_m->SetState(WIDGETSTATE_SELECTED); auto amb_m = CreateButton("Ambient", 100, gap, 120, 30, removal_p, BUTTON_RADIO); while (true) { const auto& event = WaitEvent(); } return 0; } Let's build cool stuff and have fun.
Solution Josh Posted September 6, 2023 Solution Posted September 6, 2023 Fixed for next build... Let's build cool stuff and have fun.
Recommended Posts