RACE_POSITIONS

Scaleform displays a Race Results Screen!


BeginScaleformMovieMethod(scaleform, "SET_RACE_LABELS")
PushScaleformMovieMethodParameterString("POSITION") -- first row text label
PushScaleformMovieMethodParameterString("TIME") -- third row text label
PushScaleformMovieMethodParameterString("BEST TIME") -- fourth row text label
PushScaleformMovieMethodParameterString("GATES") -- second row text label
PushScaleformMovieMethodParameterString("TITLE_TEXT #1") -- results panel title
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_RACE_POSITION")
PushScaleformMovieMethodParameterInt(4)
PushScaleformMovieMethodParameterInt(10)
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_GATES_POSITION")
PushScaleformMovieMethodParameterInt(3)
PushScaleformMovieMethodParameterInt(20)
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_RACE_TIME")
PushScaleformMovieMethodParameterString("1\'34\"567")
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_BEST_TIME")
PushScaleformMovieMethodParameterString("9\'99\"999")
EndScaleformMovieMethod()
for i=1,10 do
    BeginScaleformMovieMethod(scaleform, "SET_RACE_RESULTS")
    PushScaleformMovieMethodParameterString("" .. i-1 .. "") -- index
    PushScaleformMovieMethodParameterString("" .. i .. "") -- place
    PushScaleformMovieMethodParameterString("NAME") -- name
    PushScaleformMovieMethodParameterString("TIME") -- time or other string
    EndScaleformMovieMethod()
end
BeginScaleformMovieMethod(scaleform, "SHOW_RACE_MODULE")
PushScaleformMovieMethodParameterInt(0) --row id not to show
PushScaleformMovieMethodParameterBool(true) -- visible or not
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SHOW_RACE_RESULTS")
PushScaleformMovieMethodParameterInt(1) -- show the big panel in the center
EndScaleformMovieMethod()