Sign in to follow this  
  • entries
  • comments
  • views

CircleSliderControl v1.0

Sign in to follow this  

(5.34 KB) prereq: .NET

CircleSliderControl v1.0
by steelgolem

while working on my sprite class i realized it would be
pretty cool if i made a viewer, and one of the things i
needed for the viewer was some way to change the direction
the sprite was facing. i liked the idea of a circular slider
control so i built it.

drop one in and handle the DirectionVectorChanged event.
it'll fire if you set DirectionVector or the user moves the
sliderButton around.

- the exposed DirectionVector property is a PointF object
- jpetrie says my code isn't thread-safe
- Resize keeps the control exactly square and goes with the
smaller dimension, so change both at the same time if you
want it to go bigger

- check control class for over-exposion
Sign in to follow this  

1 Comment

Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now