JubeatPlus 3.9.11
Loading...
Searching...
No Matches
EditNoteRendererPhone.h
Go to the documentation of this file.
1
14
15#import <AVFoundation/AVFoundation.h>
16#import <CoreGraphics/CoreGraphics.h>
17#import <Foundation/Foundation.h>
18#import <UIKit/UIKit.h>
19
20#import "EditNoteRenderer.h"
21
22@class Texture2D;
23@class EffectBgKnit;
24@class EditRendererConf;
25
26NS_ASSUME_NONNULL_BEGIN
27
32@protected
33 BOOL isRetina; // +0x60
34 unsigned int frame; // +0x64
35 unsigned int subStateChangeFrame; // +0x68
36 float lastHakuPhase; // +0x6c
37 unsigned int effFrame; // +0x70
38 unsigned int effSlot; // +0x74
39 float bounceEnergy; // +0x78
40}
41
48- (instancetype)init;
49
50#pragma mark - Textures
51
62- (void)loadTexure:(nullable EditRendererConf *)conf
63 artwork:(nullable UIImage *)artwork
64 index:(nullable UIImage *)index;
65
71- (void)releaseTexture;
72
73#pragma mark - Play lifecycle
74
82- (void)setState:(unsigned int)state;
83
88- (void)startPlay;
89
94- (void)endResult;
95
96#pragma mark - Drawing
97
106- (void)drawClip:(int)drawIndex
107 drawPosition:(CGPoint)drawPosition
108 drawArea:(CGRect)drawArea
109 alpha:(float)alpha;
110
116- (void)renderMarker;
117
123- (void)renderShutter:(BOOL)animate;
124
131- (void)renderCombo:(unsigned int)combo alpha:(float)alpha;
132
141- (void)renderMusicBar:(CGPoint)position timeline:(BOOL)timeline alpha:(double)alpha;
142
150- (void)renderTuneInfo:(CGPoint)position artworkSize:(double)artworkSize alpha:(double)alpha;
151
157- (void)renderUpperBG:(BOOL)arg;
158
163- (void)renderUpper;
164
169- (void)renderButtons;
170
176- (void)renderPreStart;
177
183- (void)renderReadyGo;
184
192- (void)renderFullcombo:(int)frameArg isResult:(BOOL)isResult;
193
198- (void)renderFinish;
199
205- (double)buttonAreaOffset;
206
212- (void)draw;
213
222- (void)drawDebugText:(nullable const char *)text pos:(CGPoint)pos alpha:(float)alpha;
223
229- (CGRect)getTimeLineRect;
230
231#pragma mark - Read-only accessors
232
237@property(nonatomic, readonly) unsigned int endButtonID;
238
239#pragma mark - Textures and effects
240
245@property(nonatomic, strong, nullable) Texture2D *texReady0;
246
250@property(nonatomic, strong, nullable) Texture2D *texReady1;
251
255@property(nonatomic, strong, nullable) Texture2D *texFront;
256
260@property(nonatomic, strong, nullable) Texture2D *texMarker;
261
266@property(nonatomic, strong, nullable) Texture2D *texBeatBg;
267
271@property(nonatomic, strong, nullable) Texture2D *texDebugFont;
272
276@property(nonatomic, strong, nullable) AVAudioPlayer *sePlayerGo;
277
281@property(nonatomic, strong, nullable) EffectBgKnit *effectBgKnt;
282
287@property(nonatomic, strong, nullable) NSMutableArray *arrayBgEff;
288
289@end
290
291NS_ASSUME_NONNULL_END
292
293// code: language=Objective-C
294// kate: hl Objective-C;
295// vim: set ft=objc :
The edit-mode note renderer.
The phone-idiom concrete edit-mode note renderer.
Definition EditNoteRendererPhone.h:31
unsigned int subStateChangeFrame
The frame the sub-state last changed on.
Definition EditNoteRendererPhone.h:35
unsigned int effFrame
The knit-effect animation frame.
Definition EditNoteRendererPhone.h:37
NSMutableArray * arrayBgEff
The array of active knit background effects.
Definition EditNoteRendererPhone.h:287
unsigned int effSlot
The next knit-effect slot to fill.
Definition EditNoteRendererPhone.h:38
Texture2D * texReady0
The ready-countdown texture.
Definition EditNoteRendererPhone.h:245
Texture2D * texMarker
The note-marker atlas, unzipped from the marker archive.
Definition EditNoteRendererPhone.h:260
EffectBgKnit * effectBgKnt
The current knit background effect.
Definition EditNoteRendererPhone.h:281
Texture2D * texDebugFont
The debug-font atlas.
Definition EditNoteRendererPhone.h:271
Texture2D * texReady1
The go-countdown texture.
Definition EditNoteRendererPhone.h:250
Texture2D * texBeatBg
The knit beat-background atlas.
Definition EditNoteRendererPhone.h:266
Texture2D * texFront
The front atlas: chips, buttons, level, marks, and tune information.
Definition EditNoteRendererPhone.h:255
unsigned int frame
The per-state frame counter, advanced each draw.
Definition EditNoteRendererPhone.h:34
float lastHakuPhase
The beat phase as of the last frame.
Definition EditNoteRendererPhone.h:36
AVAudioPlayer * sePlayerGo
The go-sound player, prepared lazily when the ready state is entered.
Definition EditNoteRendererPhone.h:276
BOOL isRetina
Cached phone-retina flag, sampled once at init.
Definition EditNoteRendererPhone.h:33
float bounceEnergy
The residual bounce energy of the beat effect.
Definition EditNoteRendererPhone.h:39
The edit-mode note renderer.
Definition EditNoteRenderer.h:41
The marker, sound, and display settings the chart editor's renderer draws with.
Definition EditRendererConf.h:22
A single animated decoration on the knit background.
Definition EffectBgKnit.h:25
A texture that can draw any of the sprites packed into it.
Definition Texture2D.h:40