-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Description
Version/Branch of Dear ImGui:
Not necessary for the question
Back-ends:
Not necessary for the question
Compiler, OS:
Not necessary for the question
Full config/build information:
No response
Details:
Hi there!
I've made a rather simple but effective Date Picker for my own project and I wondered if it makes sense to add this to Dear ImGui. The current implementation is using custom types of my engine, so a bit of clean up would be necessary to use time_t instead. Before doing so, I wanted to check if this is even a wanted contribution to the base Dear ImGui project.
The header would probably look something like this:
bool DatePicker(const char* label, time_t* time, SomeKindOfFlags flags = First Day is Monday/Sunday...);
For a reference implementation see: https://github.com/Brotcrunsher/BrotBoxEngine/blob/master/BrotBoxEngine/ImGuiExtensions.cpp#L93 (Final pull request version would look quite a bit different)
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
No response