reepblue Posted August 19, 2023 Posted August 19, 2023 Slider acts weird when the range minimum value is not 0. #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]); //Create User Interface auto ui = CreateInterface(window); //Create widget auto sz = ui->root->ClientSize(); auto slider1 = CreateSlider(10, 10, 200, 30, ui->root, SLIDER_TRACKBAR); slider1->SetRange(54, 90); while (true) { const Event ev = WaitEvent(); switch (ev.id) { case EVENT_WIDGETACTION: Print("Widget action: " + String(ev.data)); break; case EVENT_WINDOWCLOSE: return 0; break; } } return 0; } Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Solution Josh Posted September 5, 2023 Solution Posted September 5, 2023 Fixed in next build. 1 1 My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts