JubeatPlus 3.9.11
Loading...
Searching...
No Matches
EditNoteRenderer Class Reference

The edit-mode note renderer. More...

#include <EditNoteRenderer.h>

Inheritance diagram for EditNoteRenderer:
Collaboration diagram for EditNoteRenderer:

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.

Detailed Description

The edit-mode note renderer.

Its direct superclass is NSObject (see the file comment).

Method Documentation

◆ buttonAreaOffset

- (double) buttonAreaOffset

The vertical offset of the button area, in points.

This override returns 0.

Returns
The button-area offset.
Ghidra address:
0x20aee4
Ghidra address:
0x20aee4

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

◆ dot2sector:

- (int) dot2sector: (int) dot

Converts a dot index to a sector index.

This override returns 0.

Parameters
dotThe dot index.
Returns
The sector index.
Ghidra address:
0x20af18
Ghidra address:
0x20af18

Reimplemented in EditNoteRendererPad.

◆ draw

- (void) draw

Draws one frame.

This override does nothing; subclasses render the edit field.

Ghidra address:
0x20aeec
Ghidra address:
0x20aeec

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

◆ drawDebugText:pos:alpha:

- (void) drawDebugText: (nullable const char *) text
pos: (CGPoint) pos
alpha: (float) alpha 

Draws debug text at a point.

This override does nothing.

Parameters
textThe C string to draw.
posThe position to draw it at.
alphaThe opacity.
Ghidra address:
0x20aef0

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

◆ endResult

- (void) endResult

Notifies the renderer that the result screen should begin.

This override does nothing.

Ghidra address:
0x20aee0
Ghidra address:
0x20aee0

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

◆ getAreaSelectEnd

- (CGRect) getAreaSelectEnd

The rectangle of the area-selection end handle.

This override returns CGRectZero .

Returns
The selection-end rectangle.
Ghidra address:
0x20af34
Ghidra address:
0x20af34

Reimplemented in EditNoteRendererPad.

◆ getAreaSelectStart

- (CGRect) getAreaSelectStart

The rectangle of the area-selection start handle.

This override returns CGRectZero .

Returns
The selection-start rectangle.
Ghidra address:
0x20af20
Ghidra address:
0x20af20

Reimplemented in EditNoteRendererPad.

◆ getTimeLineRect

- (CGRect) getTimeLineRect

The rectangle of the edit timeline.

This override returns CGRectZero .

Returns
The timeline rectangle.
Ghidra address:
0x20aef4
Ghidra address:
0x20aef4

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

◆ init

- (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.

Returns
The initialised renderer, or nil.
Ghidra address:
0x20add0
Ghidra address:
0x20add0

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

◆ loadTexure:artwork:index:

- (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.

Parameters
confThe edit renderer configuration.
artworkThe jacket artwork image.
indexAn additional texture image.
Ghidra address:
0x20ae6c

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

◆ pos2sector:

- (int) pos2sector: (int) pos

Converts a horizontal position to a sector index.

This override returns 0.

Parameters
posThe position, in points.
Returns
The sector index.
Ghidra address:
0x20af08
Ghidra address:
0x20af08

Reimplemented in EditNoteRendererPad.

◆ releaseTexture

- (void) releaseTexture

Releases the session textures.

This override does nothing.

Ghidra address:
0x20ae70
Ghidra address:
0x20ae70

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

◆ resetCurrentTime

- (void) resetCurrentTime

Resets the edit playback to the current time.

This override does nothing.

Ghidra address:
0x20af48
Ghidra address:
0x20af48

Reimplemented in EditNoteRendererPad.

◆ saveBaseScale

- (void) saveBaseScale

Saves the base scale for the edit view.

This override does nothing.

Ghidra address:
0x20af50
Ghidra address:
0x20af50

Reimplemented in EditNoteRendererPad.

◆ sector2pos:

- (int) sector2pos: (int) sector

Converts a sector index to a horizontal position.

This override returns 0.

Parameters
sectorThe sector index.
Returns
The position, in points.
Ghidra address:
0x20af10
Ghidra address:
0x20af10

Reimplemented in EditNoteRendererPad.

◆ setDbs:

- (void) setDbs: (float) dbs

Sets the decibel scale for the edit waveform display.

This override does nothing.

Parameters
dbsThe decibel scale.
Ghidra address:
0x20af4c
Ghidra address:
0x20af4c

Reimplemented in EditNoteRendererPad.

◆ startPlay

- (void) startPlay

Notifies the renderer that play has started.

This override does nothing.

Ghidra address:
0x20aedc
Ghidra address:
0x20aedc

Reimplemented in EditNoteRendererPad, and EditNoteRendererPhone.

Property Documentation

◆ areaEndSector

- (int) areaEndSector
readwritenonatomicassign

The last sector of the current area selection, or -1 when none is selected.

Ghidra address:
0x20b180 (getter), 0x20b190 (setter)

◆ areaStartSector

- (int) areaStartSector
readwritenonatomicassign

The first sector of the current area selection, or -1 when none is selected.

Ghidra address:
0x20b160 (getter), 0x20b170 (setter)

◆ btnDown

- (int) btnDown
readwritenonatomicassign

The currently held-down button bitmask.

Ghidra address:
0x20aff8 (getter), 0x20b008 (setter)

◆ btnPress

- (int) btnPress
readwritenonatomicassign

The currently pressed button bitmask.

Ghidra address:
0x20afd8 (getter), 0x20afe8 (setter)

◆ currentSector

- (int) currentSector
readwritenonatomicassign

The sector currently under the edit cursor.

Ghidra address:
0x20b120 (getter), 0x20b130 (setter)

◆ displayMode

- (int) displayMode
readwritenonatomicassign

The edit display mode.

Ghidra address:
0x20b100 (getter), 0x20b110 (setter)

◆ divMeasure

- (int) divMeasure
readwritenonatomicassign

The number of divisions per measure in the edit grid.

Ghidra address:
0x20b140 (getter), 0x20b150 (setter)

◆ eaglView

- (EAGLView*) eaglView
readwritenonatomicstrong

The GL view this renderer draws into.

Ghidra address:
0x20b0bc (getter), 0x20b0cc (setter)

◆ enableBtn

- (BOOL) enableBtn
readwritenonatomicassign

Whether the on-screen edit buttons are enabled.

Ghidra address:
0x20b0e0 (getter), 0x20b0f0 (setter)

◆ enableClap

- (BOOL) enableClap
readwritenonatomicassign

Whether the metronome clap is enabled.

Ghidra address:
0x20b1a0 (getter), 0x20b1b0 (setter)

◆ endButtonID

- (unsigned int) endButtonID
readnonatomicassign

The button identifier for the end action.

This override returns 0.

Ghidra address:
0x20aec4
Ghidra address:
0x20aec4

◆ goodJobButtonID

- (unsigned int) goodJobButtonID
readnonatomicassign

The button identifier for the good-job action.

This override returns 0.

Ghidra address:
0x20aecc
Ghidra address:
0x20aecc

◆ isEndState

- (BOOL) isEndState
readnonatomicassign

Whether the session has reached its end sub-state.

Ghidra address:
0x20aea0

◆ isNewRecord

- (BOOL) isNewRecord
readwritenonatomicassign

Whether the session set a new record.

Ghidra address:
0x20afb8 (getter), 0x20afc8 (setter)

◆ levelButtonID

- (unsigned int) levelButtonID
readnonatomicassign

The button identifier for the level action.

This override returns 0.

Ghidra address:
0x20aed4
Ghidra address:
0x20aed4

◆ partnerFinalBonus

- (unsigned int) partnerFinalBonus
readwritenonatomicassign

The partner's final bonus.

Ghidra address:
0x20b058 (getter), 0x20b068 (setter)

◆ partnerFinished

- (BOOL) partnerFinished
readwritenonatomicassign

Whether the session partner has finished.

Ghidra address:
0x20b018 (getter), 0x20b028 (setter)

◆ partnerFullcombo

- (BOOL) partnerFullcombo
readwritenonatomicassign

Whether the partner achieved a full combo.

Ghidra address:
0x20b078 (getter), 0x20b088 (setter)

◆ partnerScore

- (unsigned int) partnerScore
readwritenonatomicassign

The partner's current score.

Ghidra address:
0x20b038 (getter), 0x20b048 (setter)

◆ rendererConf

- (EditRendererConf*) rendererConf
readwritenonatomicstrong

The edit renderer configuration for the current session.

Ghidra address:
0x20af54 (getter), 0x20af64 (setter)

◆ sequence

- (EditSequence*) sequence
readwritenonatomicstrong

The edit note sequence being played.

Ghidra address:
0x20b098 (getter), 0x20b0a8 (setter)

◆ showCombo

- (BOOL) showCombo
readwritenonatomicassign

Whether the combo counter is shown.

Ghidra address:
0x20af98 (getter), 0x20afa8 (setter)

◆ state

- (unsigned int) state
readwritenonatomicassign

The high-level render state.

Setting it also resets subState to 0.

Ghidra address:
0x20ae74 (getter), 0x20ae84 (setter)

◆ subState

- (unsigned int) subState
readwritenonatomicassign

The render sub-state within the current state .

Ghidra address:
0x20af78 (getter), 0x20af88 (setter)

The documentation for this class was generated from the following files: