Robbert van der Helm
02d513b043
Disable the Alt+Click for now
...
Since it doesn't really work anyways, need to dive into egui's internals
to figure out why it doesn't work.
2022-03-05 22:22:17 +01:00
Robbert van der Helm
ec41ba5394
Add an attempt at an Alt+Click to open text entry
...
This does not work correctly unless you move your mouse, for some reason.
2022-03-05 22:11:29 +01:00
Robbert van der Helm
458f22248a
Initialize the text entry with the value
2022-03-05 21:37:16 +01:00
Robbert van der Helm
6db2b528da
Add basic text entry using built in widget
2022-03-05 21:32:37 +01:00
Robbert van der Helm
0dd71cf644
Fix slider same value check with discrete params
...
Because the check was done against the normalized value, before
snapping. This required adding `PartialEq` to the `Plain` type.
2022-03-05 19:51:06 +01:00
Robbert van der Helm
9b9799eb35
Allow overriding slider width
2022-03-05 19:39:39 +01:00
Robbert van der Helm
4c0b07c578
💥 Move re-exports to a prelude module
...
So you can import everything at once, because you're likely going to
need at least 90% of it anyways.
2022-03-03 23:23:51 +01:00
Robbert van der Helm
f581294d7b
Update rustdoc formatting for links
...
Apparently it showed this text verbatim, and not in monospace.
2022-03-03 23:05:12 +01:00
Robbert van der Helm
07d8f81f44
Update to egui 0.17
2022-02-27 16:49:18 +01:00
Robbert van der Helm
e1f80e203a
Render the ParamSlider value
2022-02-09 19:45:54 +01:00
Robbert van der Helm
87b31f4c2f
Move the main slider to a function
2022-02-09 19:17:46 +01:00
Robbert van der Helm
cd50d5bb77
Remove todo about wonky modifiers
...
This has been fixed by https://github.com/RustAudio/baseview/pull/117 .
2022-02-09 19:10:58 +01:00
Robbert van der Helm
64da9c52c2
Add todo about modifier handling in egui-baseview
2022-02-09 12:28:38 +01:00
Robbert van der Helm
7eb8622736
Drag very granularly with Shift+Drag
2022-02-09 12:24:01 +01:00
Robbert van der Helm
9dfac991c8
Also reset parameters with Ctrl+Click
2022-02-09 11:51:42 +01:00
Robbert van der Helm
fe3ea5d9f8
Don't change a parmeter if it wouldn't do anything
2022-02-09 11:51:30 +01:00
Robbert van der Helm
cd683187e0
Allow resetting parameters by double clicking
2022-02-09 11:51:30 +01:00
Robbert van der Helm
882ba8f61d
Don't use smart aim
...
Probably not needed here
2022-02-09 11:36:10 +01:00
Robbert van der Helm
8e7a86262f
Handle parameter edit begin and release
2022-02-09 11:34:58 +01:00
Robbert van der Helm
a1c6d1d30a
Scale the dragged slider color based on original
2022-02-09 11:32:19 +01:00
Robbert van der Helm
dbc6bf993b
Don't fill the slider if it's empty
2022-02-09 11:19:49 +01:00
Robbert van der Helm
e2524a2d81
Handle stepped non-float parameters
...
The widget now snaps to the correct range. This would always be
displayed this way internally, but now we also won't tell the host about
the invalid values.
2022-02-09 11:18:38 +01:00
Robbert van der Helm
46a7d8a261
Make the ParamSlider generic over all param types
2022-02-09 11:13:51 +01:00
Robbert van der Helm
857cf876e8
Add the beginnings of a parameter slider widget
2022-02-09 01:07:57 +01:00