Skip to main content

ChartingUIGrid

Kindclass
Packageeditors.charting
Full nameeditors.charting.ChartingUIGrid
Sourcesource/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.

ParameterTypeDefault
stateChartingState—
add (optional)Int0

View source

sectionStartTimeAt​

static function sectionStartTimeAt(state:ChartingState, section:Int):Float
ParameterTypeDefault
stateChartingState—
sectionInt—

View source

sectionIndexAtTime​

static function sectionIndexAtTime(state:ChartingState, time:Float):Int
ParameterTypeDefault
stateChartingState—
timeFloat—

View source

sectionDuration​

static function sectionDuration(state:ChartingState, section:Int):Float
ParameterTypeDefault
stateChartingState—
sectionInt—

View source

getSectionBeats​

static function getSectionBeats(state:ChartingState, section:Null<Int> = null):Float
ParameterTypeDefault
stateChartingState—
section (optional)Null<Int>null

View source

addSection​

static function addSection(state:ChartingState, sectionBeats:Float = 4):Void
ParameterTypeDefault
stateChartingState—
sectionBeats (optional)Float4

View source

getStrumTime​

static function getStrumTime(state:ChartingState, yPos:Float):Float
ParameterTypeDefault
stateChartingState—
yPosFloat—

View source

getYfromStrum​

static function getYfromStrum(state:ChartingState, strumTime:Float):Float
ParameterTypeDefault
stateChartingState—
strumTimeFloat—

View source

getYfromStrumNotes​

static function getYfromStrumNotes(state:ChartingState, strumTime:Float, beats:Float, section:Int, sectionTop:Float):Float
ParameterTypeDefault
stateChartingState—
strumTimeFloat—
beatsFloat—
sectionInt—
sectionTopFloat—

View source

strumLineUpdateY​

static function strumLineUpdateY(state:ChartingState)
ParameterTypeDefault
stateChartingState—

View source

updateZoom​

static function updateZoom(state:ChartingState)
ParameterTypeDefault
stateChartingState—

View source

reloadGridLayer​

static function reloadGridLayer(state:ChartingState)
ParameterTypeDefault
stateChartingState—

View source

setupNoteData​

static function setupNoteData(state:ChartingState, i:Array<Dynamic>, isNextSection:Bool):Note
ParameterTypeDefault
stateChartingState—
iArray<Dynamic>—
isNextSectionBool—

View source

getEventName​

static function getEventName(names:Array<Dynamic>):String
ParameterTypeDefault
namesArray<Dynamic>—

View source

setupSusNote​

static function setupSusNote(state:ChartingState, note:Note, section:Int):FlxSprite
ParameterTypeDefault
stateChartingState—
noteNote—
sectionInt—

View source

updateGrid​

static function updateGrid(state:ChartingState, andNext:Bool = true, onlyEvents:Bool = false):Void
ParameterTypeDefault
stateChartingState—
andNext (optional)Booltrue
onlyEvents (optional)Boolfalse

View source

updateNoteUI​

static function updateNoteUI(state:ChartingState):Void
ParameterTypeDefault
stateChartingState—

View source