16#import <QuartzCore/QuartzCore.h>
17#import <UIKit/UIKit.h>
21NS_ASSUME_NONNULL_BEGIN
26@protocol MarkerSelectViewDelegate <NSObject>
32- (void)markerSelectChanged:(nonnull
id)sender;
47- (instancetype)initWithFrame:(CGRect)frame;
55- (nullable NSString *)soundName:(nullable NSString *)name;
70- (void)loop:(nullable CADisplayLink *)sender;
102- (void)startLoadMarker:(BOOL)scroll;
110- (void)btnMarker:(nullable UIButton *)sender;
123- (void)scrollViewWillBeginDragging:(nonnull UIScrollView *)scrollView;
131- (void)scrollViewDidScroll:(nonnull UIScrollView *)scrollView;
138- (void)scrollViewDidEndDecelerating:(nonnull UIScrollView *)scrollView;
146- (void)scrollViewDidEndDragging:(nonnull UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;
158@property(nonatomic, weak, nullable) id<MarkerSelectViewDelegate>
delegate;
176@property(nonatomic, strong, nullable) NSMutableArray<UIButton *> *
arrayMarkerBtn;
188@property(nonatomic, strong, nullable) UIImageView *
bgView;
200@property(nonatomic, strong, nullable) UIActivityIndicatorView *
indicator;
The marker (note-hit graphic) preview view.
The marker selection screen: a paged banner list with a live marker preview.
Definition MarkerSelectView.h:38
nullable UIImage * getCurrentBanner()
The background image of the button for the currently persisted marker.
Definition MarkerSelectView.m:207
UIImageView * buttonImgView
The press button graphic shown over the preview.
Definition MarkerSelectView.h:182
UIView * loadingView
The dimming overlay shown while a marker loads.
Definition MarkerSelectView.h:194
NSMutableArray< UIButton * > * arrayMarkerBtn
The marker banner buttons tiled into the scroll content.
Definition MarkerSelectView.h:176
void close()
Stops the preview and releases the preview's textures.
Definition MarkerSelectView.m:339
UIActivityIndicatorView * indicator
The activity indicator inside the loading overlay.
Definition MarkerSelectView.h:200
MarkerTestView * markerTestView
The OpenGL preview of the currently loaded marker.
Definition MarkerSelectView.h:164
void stopAnimation()
Invalidates and releases the display link.
Definition MarkerSelectView.m:254
UIImageView * bgView
The screen background image.
Definition MarkerSelectView.h:188
id< MarkerSelectViewDelegate > delegate
The object notified when the selected marker changes; held weakly.
Definition MarkerSelectView.h:158
UIScrollView * bannerScrollView
The horizontally-paged banner scroll view of marker options.
Definition MarkerSelectView.h:170
CADisplayLink * displayLink
The display link that drives the preview and press-button lifecycle.
Definition MarkerSelectView.h:212
void startAnimation()
Creates the display link targeting -loop: , adds it to the run loop, and resets the preview.
Definition MarkerSelectView.m:227
UILabel * labelLoading
The "Loading..." label inside the loading overlay.
Definition MarkerSelectView.h:206
void resumeAnimation()
Resumes the preview and the display link.
Definition MarkerSelectView.m:246
void pauseAnimation()
Pauses the preview and the display link.
Definition MarkerSelectView.m:238
void updateMarkerList()
Rebuilds the banner scroll view and its marker buttons from the current marker list.
Definition MarkerSelectView.m:416
A self-contained OpenGL ES view that previews a marker's hit animation.
Definition MarkerTestView.h:25