|
JubeatPlus 3.9.11
|
The phone-idiom concrete edit-mode note renderer. More...
#include <EditNoteRendererPhone.h>


Instance Methods | |
| (instancetype) | - init |
| Initialises the renderer, building an empty background-effect array and caching the phone-retina flag. | |
| (void) | - loadTexure:artwork:index: |
| Loads every edit-session texture and sound: the debug font, the knit beat background and its two colour variants, the ready and go textures, the front atlas (with the level, start, and end marks and the note markers unzipped from the marker archive), the jacket artwork, and the index image. | |
| (void) | - releaseTexture |
| Releases the debug-font, ready, front, and beat-background textures. | |
| (void) | - setState: |
| Sets the high-level render state, resetting the per-frame counters and preparing the state's audio (loading the go sound for the ready state and the result BGM for the result state). | |
| (void) | - startPlay |
| Enters the ready state and clears the go-sound player. | |
| (void) | - endResult |
| Marks the session finished when it is in the result state. | |
| (void) | - drawClip:drawPosition:drawArea:alpha: |
| Draws one clipped note chip from the front atlas, clamping the chip to the draw area. | |
| (void) | - renderMarker |
| Draws the five beat-background shutter columns, top and bottom halves, sliding by the shutter-open animation. | |
| (void) | - renderShutter: |
| Advances and draws the shutter animation across the five beat-background columns. | |
| (void) | - renderCombo:alpha: |
| Records the combo count for the next frame. | |
| (void) | - renderMusicBar:timeline:alpha: |
| Draws the difficulty music bar: the leading difficulty chip, one chip per bar cell, and the optional timeline cursor. | |
| (void) | - renderTuneInfo:artworkSize:alpha: |
| Draws the tune information block: jacket, title, difficulty word, and level. | |
| (void) | - renderUpperBG: |
| Draws the upper background. | |
| (void) | - renderUpper |
| Draws the upper region: the tune information and the (optionally live) music bar. | |
| (void) | - renderButtons |
| Draws the 4x4 button grid, highlighting pressed panels. | |
| (void) | - renderPreStart |
| Draws the pre-start intro: shutter, sliding tune information, fading music bar, and buttons, playing the start sound and advancing the sub-state at the end of the intro. | |
| (void) | - renderReadyGo |
| Draws the ready/go countdown, playing the ready and go sounds on their frames and finishing the sub-state when the countdown ends. | |
| (void) | - renderFullcombo:isResult: |
| Draws the full-combo banner, sliding and squashing over the animation and playing the full-combo sounds on the result variant. | |
| (void) | - renderFinish |
| Draws the finish region. | |
| (double) | - buttonAreaOffset |
| The vertical offset of the button area, in points. | |
| (void) | - draw |
| Draws the whole edit frame, dispatching on the state to the render methods and flushing every texture atlas. | |
| (void) | - drawDebugText:pos:alpha: |
| Draws a run of debug text from the debug-font atlas, advancing per glyph and wrapping on newlines. | |
| (CGRect) | - getTimeLineRect |
| The rectangle of the edit timeline, in phone points. | |
| Instance Methods inherited from EditNoteRenderer | |
| (void) | - resetCurrentTime |
| Resets the edit playback to the current time. | |
| (void) | - saveBaseScale |
| Saves the base scale for the edit view. | |
| (CGRect) | - getAreaSelectStart |
| The rectangle of the area-selection start handle. | |
| (CGRect) | - getAreaSelectEnd |
| The rectangle of the area-selection end handle. | |
| (int) | - pos2sector: |
| Converts a horizontal position to a sector index. | |
| (int) | - sector2pos: |
| Converts a sector index to a horizontal position. | |
| (int) | - dot2sector: |
| Converts a dot index to a sector index. | |
| (void) | - setDbs: |
| Sets the decibel scale for the edit waveform display. | |
Protected Attributes | |
| BOOL | isRetina |
| Cached phone-retina flag, sampled once at init. | |
| unsigned int | frame |
| The per-state frame counter, advanced each draw. | |
| unsigned int | subStateChangeFrame |
| The frame the sub-state last changed on. | |
| float | lastHakuPhase |
| The beat phase as of the last frame. | |
| unsigned int | effFrame |
| The knit-effect animation frame. | |
| unsigned int | effSlot |
| The next knit-effect slot to fill. | |
| float | bounceEnergy |
| The residual bounce energy of the beat effect. | |
| Protected Attributes inherited from EditNoteRenderer | |
| float | shutterOpen |
| The shutter-open animation progress. | |
| unsigned int | lastCombo |
| The combo count as of the last frame. | |
| unsigned int | comboEffectFrame |
| The combo burst animation frame. | |
| unsigned int | comboCutFrame |
| The combo cut-in animation frame. | |
| unsigned int | scoreDisplay |
| The score currently shown, tweened up. | |
| unsigned int | partnerScoreDisplay |
| The partner's shown score, tweened up. | |
| int | markerState [kEditNoteGridPanelCount] |
| Per-panel marker animation state. | |
Properties | |
| unsigned int | endButtonID |
| The button identifier for the end action. | |
| Texture2D * | texReady0 |
| The ready-countdown texture. | |
| Texture2D * | texReady1 |
| The go-countdown texture. | |
| Texture2D * | texFront |
| The front atlas: chips, buttons, level, marks, and tune information. | |
| Texture2D * | texMarker |
| The note-marker atlas, unzipped from the marker archive. | |
| Texture2D * | texBeatBg |
| The knit beat-background atlas. | |
| Texture2D * | texDebugFont |
| The debug-font atlas. | |
| AVAudioPlayer * | sePlayerGo |
| The go-sound player, prepared lazily when the ready state is entered. | |
| EffectBgKnit * | effectBgKnt |
| The current knit background effect. | |
| NSMutableArray * | arrayBgEff |
| The array of active knit background effects. | |
| Properties inherited from EditNoteRenderer | |
| BOOL | isEndState |
| Whether the session has reached its end sub-state. | |
| unsigned int | endButtonID |
| The button identifier for the end action. | |
| unsigned int | goodJobButtonID |
| The button identifier for the good-job action. | |
| unsigned int | levelButtonID |
| The button identifier for the level action. | |
| unsigned int | state |
| The high-level render state. | |
| unsigned int | subState |
The render sub-state within the current state . | |
| BOOL | showCombo |
| Whether the combo counter is shown. | |
| BOOL | isNewRecord |
| Whether the session set a new record. | |
| int | btnPress |
| The currently pressed button bitmask. | |
| int | btnDown |
| The currently held-down button bitmask. | |
| BOOL | partnerFinished |
| Whether the session partner has finished. | |
| unsigned int | partnerScore |
| The partner's current score. | |
| unsigned int | partnerFinalBonus |
| The partner's final bonus. | |
| BOOL | partnerFullcombo |
| Whether the partner achieved a full combo. | |
| EditRendererConf * | rendererConf |
| The edit renderer configuration for the current session. | |
| EditSequence * | sequence |
| The edit note sequence being played. | |
| EAGLView * | eaglView |
| The GL view this renderer draws into. | |
| BOOL | enableBtn |
| Whether the on-screen edit buttons are enabled. | |
| int | displayMode |
| The edit display mode. | |
| int | currentSector |
| The sector currently under the edit cursor. | |
| int | divMeasure |
| The number of divisions per measure in the edit grid. | |
| int | areaStartSector |
| The first sector of the current area selection, or -1 when none is selected. | |
| int | areaEndSector |
| The last sector of the current area selection, or -1 when none is selected. | |
| BOOL | enableClap |
| Whether the metronome clap is enabled. | |
The phone-idiom concrete edit-mode note renderer.
| - (double) buttonAreaOffset |
The vertical offset of the button area, in points.
Returns 0 for the phone.
Reimplemented from EditNoteRenderer.
| - (void) draw |
Draws the whole edit frame, dispatching on the state to the render methods and flushing every texture atlas.
Reimplemented from EditNoteRenderer.
| - (void) drawClip: | (int) | drawIndex | |
| drawPosition: | (CGPoint) | drawPosition | |
| drawArea: | (CGRect) | drawArea | |
| alpha: | (float) | alpha |
Draws one clipped note chip from the front atlas, clamping the chip to the draw area.
| drawIndex | The sprite index in the front atlas. |
| drawPosition | The chip's origin. |
| drawArea | The clip rectangle the chip is confined to. |
| alpha | The opacity. |
| - (void) drawDebugText: | (nullable const char *) | text | |
| pos: | (CGPoint) | pos | |
| alpha: | (float) | alpha |
Draws a run of debug text from the debug-font atlas, advancing per glyph and wrapping on newlines.
| text | The C string to draw. |
| pos | The starting position. |
| alpha | The opacity. |
Reimplemented from EditNoteRenderer.
| - (void) endResult |
Marks the session finished when it is in the result state.
Reimplemented from EditNoteRenderer.
| - (CGRect) getTimeLineRect |
The rectangle of the edit timeline, in phone points.
Reimplemented from EditNoteRenderer.
| - (instancetype) init |
Initialises the renderer, building an empty background-effect array and caching the phone-retina flag.
nil. Reimplemented from EditNoteRenderer.
| - (void) loadTexure: | (nullable EditRendererConf *) | conf | |
| artwork: | (nullable UIImage *) | artwork | |
| index: | (nullable UIImage *) | index |
Loads every edit-session texture and sound: the debug font, the knit beat background and its two colour variants, the ready and go textures, the front atlas (with the level, start, and end marks and the note markers unzipped from the marker archive), the jacket artwork, and the index image.
The selector spelling loadTexure: is the binary's own.
| conf | The edit renderer configuration. |
| artwork | The jacket artwork image. |
| index | An additional index image. |
Reimplemented from EditNoteRenderer.
| - (void) releaseTexture |
Releases the debug-font, ready, front, and beat-background textures.
It does not release the note-marker texture, matching the binary.
Reimplemented from EditNoteRenderer.
| - (void) renderButtons |
Draws the 4x4 button grid, highlighting pressed panels.
| - (void) renderCombo: | (unsigned int) | combo | |
| alpha: | (float) | alpha |
Records the combo count for the next frame.
This phone override draws nothing else.
| combo | The current combo count. |
| alpha | The opacity. |
| - (void) renderFinish |
Draws the finish region.
This phone override does nothing.
| - (void) renderFullcombo: | (int) | frameArg | |
| isResult: | (BOOL) | isResult |
Draws the full-combo banner, sliding and squashing over the animation and playing the full-combo sounds on the result variant.
| frameArg | The animation frame. |
| isResult | Whether the result variant (offset by the intro length) is drawn. |
| - (void) renderMarker |
Draws the five beat-background shutter columns, top and bottom halves, sliding by the shutter-open animation.
| - (void) renderMusicBar: | (CGPoint) | position | |
| timeline: | (BOOL) | timeline | |
| alpha: | (double) | alpha |
Draws the difficulty music bar: the leading difficulty chip, one chip per bar cell, and the optional timeline cursor.
| position | The bar's origin. |
| timeline | Whether to draw the timeline cursor. |
| alpha | The opacity. |
| - (void) renderPreStart |
Draws the pre-start intro: shutter, sliding tune information, fading music bar, and buttons, playing the start sound and advancing the sub-state at the end of the intro.
| - (void) renderReadyGo |
Draws the ready/go countdown, playing the ready and go sounds on their frames and finishing the sub-state when the countdown ends.
| - (void) renderShutter: | (BOOL) | animate |
Advances and draws the shutter animation across the five beat-background columns.
| animate | Whether to advance the shutter-open value this frame. |
| - (void) renderTuneInfo: | (CGPoint) | position | |
| artworkSize: | (double) | artworkSize | |
| alpha: | (double) | alpha |
Draws the tune information block: jacket, title, difficulty word, and level.
| position | The block's origin. |
| artworkSize | The jacket's square size. |
| alpha | The opacity. |
| - (void) renderUpper |
Draws the upper region: the tune information and the (optionally live) music bar.
| - (void) renderUpperBG: | (BOOL) | arg |
Draws the upper background.
This phone override does nothing.
| arg | Unused. |
| - (void) setState: | (unsigned int) | state |
Sets the high-level render state, resetting the per-frame counters and preparing the state's audio (loading the go sound for the ready state and the result BGM for the result state).
| state | The state to enter. |
| - (void) startPlay |
Enters the ready state and clears the go-sound player.
Reimplemented from EditNoteRenderer.
|
readwritenonatomicstrong |
The array of active knit background effects.
|
readnonatomicassign |
The button identifier for the end action.
Returns 15 for the phone.
|
readwritenonatomicstrong |
The knit beat-background atlas.
|
readwritenonatomicstrong |
The ready-countdown texture.