no description available, TMenuAccessory description follows
Attachment to a specific menu item of TCastleOnScreenMenu, for example may store a value associated with given menu option, and allow to change it by a slider.
Draw a slider at given Position. If Position is outside 0..1, it is clamped to 0..1 (this way we do not show slider at some wild position if it's outside the expected range; but DrawSliderText will still show the true, unclamped, value).
function XCoordToSliderPosition(const XCoord: Single; const Rectangle: TRectangle): Single;
Returns a value of Position, always in 0..1 range, that would result in slider being drawn at XCoord screen position by DrawSliderPosition. Takes Rectangle as the rectangle currently occupied by the whole slider.