Hi, does anyone have a good way for selecting numbers for hours and minutes? I would like my game to have a setting where the user can pick a start and end time, for example 9:00am to 4:30pm. Then I’ll use those times to limit when things can happen.
I tried the Draggable slider control extension as an experiment for the start time. For now I just had the slider value displaying in a text box (I’d figure out how to make it all connect later). But if I have it set up with a mininum value of 0 for midnight and 23.5 for 11:30pm with increments of 0.5 for 30 minutes then it would, for example, display 9.5 for 9:30.
I also tried the new object from the latest GD release called **Text Input** and its up and down arrows work nicely for selecting a number when the input type is set to number, but it doesn't have the limits that hours and minutes have. So, for example, the minutes value would continue past 59 and also could have negative numbers. I tried adding an event so that when the value was on 59...but there wasn't anything I could do that would allow it to still be able to go back down to a lower value. The reason why the first number is so far to the left is because of the space needed for the up and down arrows. And I would really be happy with the times limited to increments of 15 or 30 minutes, 9:07 isn't necessary for me.
Am I having a mental block on this and there is an easy way? Or do I need to make an extension to do it? I don't have any experience of making extensions but will give it a go if necessary although this time picker thing is for my side project. Or should I request that a Time input type be added to the Text Input object?