|
JubeatPlus 3.9.11
|
The edit-mode note renderer. More...
#include <EditNoteRenderer.h>


Instance Methods | |
| (instancetype) | - init |
| Initialises the renderer with edit-mode defaults: the button area enabled, display mode 0, and both the start and end selection sectors cleared to -1. | |
| (void) | - loadTexure:artwork:index: |
| Loads the textures for the edit session. | |
| (void) | - releaseTexture |
| Releases the session textures. | |
| (void) | - startPlay |
| Notifies the renderer that play has started. | |
| (void) | - endResult |
| Notifies the renderer that the result screen should begin. | |
| (void) | - resetCurrentTime |
| Resets the edit playback to the current time. | |
| (void) | - saveBaseScale |
| Saves the base scale for the edit view. | |
| (double) | - buttonAreaOffset |
| The vertical offset of the button area, in points. | |
| (CGRect) | - getTimeLineRect |
| The rectangle of the edit timeline. | |
| (CGRect) | - getAreaSelectStart |
| The rectangle of the area-selection start handle. | |
| (CGRect) | - getAreaSelectEnd |
| The rectangle of the area-selection end handle. | |
| (void) | - draw |
| Draws one frame. | |
| (void) | - drawDebugText:pos:alpha: |
| Draws debug text at a point. | |
| (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 | |
| 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 | |
| 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 edit-mode note renderer.
Its direct superclass is NSObject (see the file comment).
| - (double) buttonAreaOffset |
The vertical offset of the button area, in points.
This override returns 0.
Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
| - (int) dot2sector: | (int) | dot |
Converts a dot index to a sector index.
This override returns 0.
| dot | The dot index. |
Reimplemented in EditNoteRendererPad.
| - (void) draw |
Draws one frame.
This override does nothing; subclasses render the edit field.
Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
| - (void) drawDebugText: | (nullable const char *) | text | |
| pos: | (CGPoint) | pos | |
| alpha: | (float) | alpha |
Draws debug text at a point.
This override does nothing.
| text | The C string to draw. |
| pos | The position to draw it at. |
| alpha | The opacity. |
Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
| - (void) endResult |
Notifies the renderer that the result screen should begin.
This override does nothing.
Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
| - (CGRect) getAreaSelectEnd |
The rectangle of the area-selection end handle.
This override returns CGRectZero .
Reimplemented in EditNoteRendererPad.
| - (CGRect) getAreaSelectStart |
The rectangle of the area-selection start handle.
This override returns CGRectZero .
Reimplemented in EditNoteRendererPad.
| - (CGRect) getTimeLineRect |
The rectangle of the edit timeline.
This override returns CGRectZero .
Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
| - (instancetype) init |
Initialises the renderer with edit-mode defaults: the button area enabled, display mode 0, and both the start and end selection sectors cleared to -1.
nil. Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
| - (void) loadTexure: | (nullable EditRendererConf *) | conf | |
| artwork: | (nullable UIImage *) | artwork | |
| index: | (nullable UIImage *) | index |
Loads the textures for the edit session.
This override does nothing; the concrete idiom subclasses load the appropriate textures. The selector spelling loadTexure: is the binary's own (a missing "t"), kept verbatim.
| conf | The edit renderer configuration. |
| artwork | The jacket artwork image. |
| index | An additional texture image. |
Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
| - (int) pos2sector: | (int) | pos |
Converts a horizontal position to a sector index.
This override returns 0.
| pos | The position, in points. |
Reimplemented in EditNoteRendererPad.
| - (void) releaseTexture |
Releases the session textures.
This override does nothing.
Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
| - (void) resetCurrentTime |
Resets the edit playback to the current time.
This override does nothing.
Reimplemented in EditNoteRendererPad.
| - (void) saveBaseScale |
Saves the base scale for the edit view.
This override does nothing.
Reimplemented in EditNoteRendererPad.
| - (int) sector2pos: | (int) | sector |
Converts a sector index to a horizontal position.
This override returns 0.
| sector | The sector index. |
Reimplemented in EditNoteRendererPad.
| - (void) setDbs: | (float) | dbs |
Sets the decibel scale for the edit waveform display.
This override does nothing.
| dbs | The decibel scale. |
Reimplemented in EditNoteRendererPad.
| - (void) startPlay |
Notifies the renderer that play has started.
This override does nothing.
Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.
|
readwritenonatomicassign |
The last sector of the current area selection, or -1 when none is selected.
|
readwritenonatomicassign |
The first sector of the current area selection, or -1 when none is selected.
|
readwritenonatomicassign |
The currently held-down button bitmask.
|
readwritenonatomicassign |
The currently pressed button bitmask.
|
readwritenonatomicassign |
The sector currently under the edit cursor.
|
readwritenonatomicassign |
The edit display mode.
|
readwritenonatomicassign |
The number of divisions per measure in the edit grid.
|
readwritenonatomicstrong |
The GL view this renderer draws into.
|
readwritenonatomicassign |
Whether the on-screen edit buttons are enabled.
|
readwritenonatomicassign |
Whether the metronome clap is enabled.
|
readnonatomicassign |
The button identifier for the end action.
This override returns 0.
|
readnonatomicassign |
The button identifier for the good-job action.
This override returns 0.
|
readnonatomicassign |
Whether the session has reached its end sub-state.
|
readwritenonatomicassign |
Whether the session set a new record.
|
readnonatomicassign |
The button identifier for the level action.
This override returns 0.
|
readwritenonatomicassign |
The partner's final bonus.
|
readwritenonatomicassign |
Whether the session partner has finished.
|
readwritenonatomicassign |
Whether the partner achieved a full combo.
|
readwritenonatomicassign |
The partner's current score.
|
readwritenonatomicstrong |
The edit renderer configuration for the current session.
|
readwritenonatomicstrong |
The edit note sequence being played.
|
readwritenonatomicassign |
Whether the combo counter is shown.
|
readwritenonatomicassign |
The high-level render state.
Setting it also resets subState to 0.
|
readwritenonatomicassign |
The render sub-state within the current state .