Skip to content

Commit bb3d682

Browse files
author
Guillaume Piolat
committed
Common mistake warning.
1 parent f8a3da8 commit bb3d682

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pbrwidgets/dplug/pbrwidgets/sliderlogic.d

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ nothrow:
5656
param = The parameter this slider logic acts on.
5757
vertical = true for vertical, false for horizontal.
5858
59-
Note: If you want to _disable_ your slider logic,
60-
just don't call other functions.
59+
Note: If you want to _disable_ your slider logic (as in
60+
disabled widget), a good way is just not call those
61+
functions.
62+
63+
Warning: Do not forget to also register a `param` listener
64+
if you want to display changes based on that.
6165
*/
6266
void initialize(UIElement elem,
6367
Parameter param,

0 commit comments

Comments
 (0)