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

Draws hold markers from a sixteen-entry panel array. More...

#include <HoldMarkerRender.h>

Inheritance diagram for HoldMarkerRender:
Collaboration diagram for HoldMarkerRender:

Instance Methods

(instancetype) - init:isPad:gameAreaDelay:
 Builds a renderer bound to a texture.
(void) - renderHoldLine:start:vector:trans:alpha:frame:addLength:
 Draws one hold tail between two panels.
(void) - renderHoldMarker:
 Draws every panel's hold marker.
(void) - renderHoldMarker:end:
 Draws one panel's hold marker.

Detailed Description

Draws hold markers from a sixteen-entry panel array.

Method Documentation

◆ init:isPad:gameAreaDelay:

- (instancetype) init: (nullable Texture2D *) tex
isPad: (BOOL) isPad
gameAreaDelay: (int) gameAreaDelay 

Builds a renderer bound to a texture.

Parameters
texThe sprite sheet to draw from. Held weakly — the store is objc_storeWeak , not objc_storeStrong , which the ivar's own encoding does not record.
isPadWhether to use the pad's metrics.
gameAreaDelayThe play area's frame delay.
Returns
The initialised renderer.
Ghidra address:
0xe7e18

◆ renderHoldLine:start:vector:trans:alpha:frame:addLength:

- (void) renderHoldLine: (CGPoint) endPoint
start: (CGPoint) startPoint
vector: (int) vector
trans: (char) trans
alpha: (float) alpha
frame: (int) frame
addLength: (int) addLength 

Draws one hold tail between two panels.

The tail runs either vertically or horizontally depending on vector , and the rectangle is built differently in each of the four arms. **An out-of-range vector draws with uninitialised geometry** rather than drawing nothing; see TYPES_PENDING.md.

Parameters
endPointThe tail's leading point. The selector leaves this argument unnamed; the caller passes the marker's own panel here and the far end as start: , which is the reverse of what the keyword suggests.
startPointThe other end.
vectorWhich of the four directions the tail runs in. Only 0 to 3 are handled.
transThe texture transform.
alphaThe opacity.
frameWhich sprite of the tail animation to draw.
addLengthHow far past the panel the tail extends.
Ghidra address:
0xe7eb8
Ghidra address:
0xe7eb8

◆ renderHoldMarker:

- (void) renderHoldMarker: (nullable HoldMarkerInfo *) markers

Draws every panel's hold marker.

Parameters
markersA sixteen-entry array, one per panel of the grid.
Ghidra address:
0xe8674

◆ renderHoldMarker:end:

- (void) renderHoldMarker: (HoldMarkerInfo) marker
end: (int) end 

Draws one panel's hold marker.

Three states draw: pressed, retracting and released. A zero state draws nothing at all.

Parameters
markerThe panel's state, passed by value.
endThe panel's index, 0 to 15.
Ghidra address:
0xe80a4
Ghidra address:
0xe80a4

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