JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MarkerSelectView.h
Go to the documentation of this file.
1
15
16#import <QuartzCore/QuartzCore.h>
17#import <UIKit/UIKit.h>
18
19#import "MarkerTestView.h"
20
21NS_ASSUME_NONNULL_BEGIN
22
26@protocol MarkerSelectViewDelegate <NSObject>
27@optional
32- (void)markerSelectChanged:(nonnull id)sender;
33@end
34
38@interface MarkerSelectView : UIView <UIScrollViewDelegate>
39
47- (instancetype)initWithFrame:(CGRect)frame;
48
55- (nullable NSString *)soundName:(nullable NSString *)name;
56
62- (nullable UIImage *)getCurrentBanner;
63
70- (void)loop:(nullable CADisplayLink *)sender;
71
77- (void)startAnimation;
78
83- (void)pauseAnimation;
84
89- (void)resumeAnimation;
90
95- (void)stopAnimation;
96
102- (void)startLoadMarker:(BOOL)scroll;
103
110- (void)btnMarker:(nullable UIButton *)sender;
111
116- (void)close;
117
123- (void)scrollViewWillBeginDragging:(nonnull UIScrollView *)scrollView;
124
131- (void)scrollViewDidScroll:(nonnull UIScrollView *)scrollView;
132
138- (void)scrollViewDidEndDecelerating:(nonnull UIScrollView *)scrollView;
139
146- (void)scrollViewDidEndDragging:(nonnull UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;
147
152- (void)updateMarkerList;
153
158@property(nonatomic, weak, nullable) id<MarkerSelectViewDelegate> delegate;
159
164@property(nonatomic, strong, nullable) MarkerTestView *markerTestView;
165
170@property(nonatomic, strong, nullable) UIScrollView *bannerScrollView;
171
176@property(nonatomic, strong, nullable) NSMutableArray<UIButton *> *arrayMarkerBtn;
177
182@property(nonatomic, strong, nullable) UIImageView *buttonImgView;
183
188@property(nonatomic, strong, nullable) UIImageView *bgView;
189
194@property(nonatomic, strong, nullable) UIView *loadingView;
195
200@property(nonatomic, strong, nullable) UIActivityIndicatorView *indicator;
201
206@property(nonatomic, strong, nullable) UILabel *labelLoading;
207
212@property(nonatomic, strong, nullable) CADisplayLink *displayLink;
213
214@end
215
216NS_ASSUME_NONNULL_END
217
218// code: language=Objective-C
219// kate: hl Objective-C;
220// vim: set ft=objc :
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