ChartingUIGrid
| Kind | class |
| Package | editors.charting |
| Full name | editors.charting.ChartingUIGrid |
| Source | source/editors/charting/ChartingUIGrid.hx |
| Metadata | @:access(editors.ChartingState) @:access(backend.MusicBeatState) |
Public methods
sectionStartTime
static function sectionStartTime(state:ChartingState, add:Int = 0):Float
Returns the absolute song time at a chart section boundary. The relative overload keeps the existing callers concise; timing itself is calculated from cumulative section steps and the current Conductor BPM map.
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
add (optional) | Int | 0 |
sectionStartTimeAt
static function sectionStartTimeAt(state:ChartingState, section:Int):Float
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
section | Int | — |
sectionIndexAtTime
static function sectionIndexAtTime(state:ChartingState, time:Float):Int
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
time | Float | — |
sectionDuration
static function sectionDuration(state:ChartingState, section:Int):Float
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
section | Int | — |
getSectionBeats
static function getSectionBeats(state:ChartingState, section:Null<Int> = null):Float
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
section (optional) | Null<Int> | null |
addSection
static function addSection(state:ChartingState, sectionBeats:Float = 4):Void
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
sectionBeats (optional) | Float | 4 |
getStrumTime
static function getStrumTime(state:ChartingState, yPos:Float):Float
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
yPos | Float | — |
getYfromStrum
static function getYfromStrum(state:ChartingState, strumTime:Float):Float
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
strumTime | Float | — |
getYfromStrumNotes
static function getYfromStrumNotes(state:ChartingState, strumTime:Float, beats:Float, section:Int, sectionTop:Float):Float
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
strumTime | Float | — |
beats | Float | — |
section | Int | — |
sectionTop | Float | — |
strumLineUpdateY
static function strumLineUpdateY(state:ChartingState)
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
updateZoom
static function updateZoom(state:ChartingState)
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
reloadGridLayer
static function reloadGridLayer(state:ChartingState)
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
setupNoteData
static function setupNoteData(state:ChartingState, i:Array<Dynamic>, isNextSection:Bool):Note
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
i | Array<Dynamic> | — |
isNextSection | Bool | — |
getEventName
static function getEventName(names:Array<Dynamic>):String
| Parameter | Type | Default |
|---|---|---|
names | Array<Dynamic> | — |
setupSusNote
static function setupSusNote(state:ChartingState, note:Note, section:Int):FlxSprite
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
note | Note | — |
section | Int | — |
updateGrid
static function updateGrid(state:ChartingState, andNext:Bool = true, onlyEvents:Bool = false):Void
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |
andNext (optional) | Bool | true |
onlyEvents (optional) | Bool | false |
updateNoteUI
static function updateNoteUI(state:ChartingState):Void
| Parameter | Type | Default |
|---|---|---|
state | ChartingState | — |