gemini icon indicating copy to clipboard operation
gemini copied to clipboard

Inspector: Add new AdvancedSlider control

Open EchterAgo opened this issue 8 years ago • 8 comments

Replace the old RangeEditor and TextBox numeric editors with the new advanced slider control. The user can use a combination of ALT, CTRL and SHIFT keys to adjust the rate of change. The user can also double click the value to edit the value numerically.

Signed-off-by: Axel Gembe [email protected]

This needs #193 merged first.

EchterAgo avatar Jun 18 '16 12:06 EchterAgo

This is a large one. Sadly it can not be used with nullable values.

EchterAgo avatar Jun 18 '16 12:06 EchterAgo

Rebased on top of #192

EchterAgo avatar Jun 23 '16 00:06 EchterAgo

Updated patch to make it easier to set the cursor inside the text field and to make the text box use the key down event for ending editing so that other controls do not handle the key down event first.

EchterAgo avatar Jul 06 '16 04:07 EchterAgo

Updated to support keyboard focus

EchterAgo avatar Jul 06 '16 05:07 EchterAgo

This looks quite nice. I'm concerned about the overlap with NumericTextBox though (as seen in the MonoGame demo, in the Vector3 property editor). Could we extend NumericTextBox instead of introducting a new control?

In any case, I'll wait till #192 is merged, so that the diff here is easier to review.

tgjones avatar Jul 06 '16 10:07 tgjones

Rebased

EchterAgo avatar Nov 06 '18 09:11 EchterAgo

Please could you rebase this again?

tgjones avatar Nov 06 '18 16:11 tgjones

I'll do that, but I'd like to look into addressing your concerns regarding NumericTextBox overlap first. I think you should take a look at merging #298, it is a simple bugfix.

EchterAgo avatar Nov 06 '18 16:11 EchterAgo