SXSlider
Usage
- (id)initWithWidth:(float)width height:(float)height {
self = [super initWithWidth:width height:height];
slider = [[SXSlider alloc] init];
slider.min = -20;
slider.max = 100;
[self addChild:slider];
[slider addEventListener:@selector(onValueChange:) atObject:self forType:SX_SLIDER_EVENT_UPDATED];
return self;
}
- (void)onValueChange:(SPEvent*)event{
NSLog(@"slider val: %f", slider.value);
}
Changelog
Source Code
Discussion
No comments so far. Feel free to edit this part of the page.