local keyword, they will be global.
module is a core function of Lua's basic library; see the Lua manual for more details.
- 0-11.
nil if the string passed in does not match any valid BlendModes.
+
+local b = StringToBlend("AlphaMask")
+Trace(b) -- "BlendMode_AlphaMask"
+
+ t.
iCol at beat fNoteBeat for the provided PlayerState. Y Offset is affected by Speed mods and Accel mods, and impacts most other arrow effects.
iCol with a Y offset of fYOffset for the provided PlayerState.iCol with a Y offset of fYOffset for the provided PlayerState.fYReverseOffsetPixels is the separation between targets with and without reverse. This argument is optional and will pull defaults from the metrics for [Player]
iCol with a Y position of fYPos for the provided PlayerState.iCol with a Y position of fYPos for the provided PlayerState.fYReverseOffsetPixels is the separation between targets with and without reverse. This argument is optional and will pull defaults from the metrics for [Player]
fYOffset for the provided PlayerState.
fNoteBeat for the provided PlayerState.fNoteBeat for the provided PlayerState.bIsHoldHead is an optional argument which defaults to false. If true, this function will return 0 if the [PlayerOptions] modifier DizzyHolds is off.
iCol with a Y offset of fYOffset for the provided PlayerState.fPercentFadeToFail is optional and defaults to -1.fYReverseOffsetPixels is the separation between targets with and without reverse. This argument is optional and will pull defaults from the metrics for [Player]fDrawDistanceBeforeTargetsPixels is optional and will pull defaults from the [Player] metric DrawDistanceBeforeTargetsPixelsfFadeInPercentOfDrawFar is optional and will pull defaults from the [NoteField] metric FadeBeforeTargetsPercentiCol with a Y offset of fYOffset for the provided PlayerState.fPercentFadeToFail is optional and defaults to -1.fYReverseOffsetPixels is the separation between targets with and without reverse. This argument is optional and will pull defaults from the metrics for [Player]fDrawDistanceBeforeTargetsPixels is optional and will pull defaults from the [Player] metric DrawDistanceBeforeTargetsPixelsfFadeInPercentOfDrawFar is optional and will pull defaults from the [NoteField] metric FadeBeforeTargetsPercentiCol with a Y offset of fYOffset for the provided PlayerState. The arguments are the same as for GetAlpha.
@@ -872,7 +876,8 @@ local playable_steps = SongUtil.GetPlayableSteps(song)
Returns the zoom of a note for the provided PlayerState.
fYOffset for the provided PlayerState.fOverlappedTime is optional and will default to 0.
+ Returns the FrameWidthScale of a hold part with a Y offset of fYOffset for the provided PlayerState.fOverlappedTime is optional and will default to 0.
nil and "error".
error is optional and defaults to "Script error occurred.".error is optional and defaults to "Script error occurred.".error_type is optional and defaults to "LUA_ERROR". Errors of type "LUA_ERROR" will be shown in-game if the ShowThemeErrors preference is enabled. A dialog will not appear for an error_type the user has chosen to ignore.
func(...) with LuaThreadVariables set according to the keys and values of t, and returns the return values of func().func(...) with LuaThreadVariables set according to the keys and values of t, and returns the return values of func().t is {x=12}, calling Var "x" from func will return 12.
c.
fTime.
fAlign which should be a float in the range 0..1. An alignment of 0 is left aligned while an alignment of 1 is right aligned. See for the common case.
+ Set the fractional horizontal alignment of the Actor according to fAlign which should be a float in the range 0..1. An alignment of 0 is left-aligned while an alignment of 1 is right-aligned.fHeading.
@@ -1392,7 +1395,14 @@ local n = r['PlayerNumber_P2']
[02 Actor.lua] "Hide if b is true, but don't unhide if b is false."
align. See for fractional alignment.
+ Set the of the Actor according to align.
+local spr = LoadActor('awesome.png')
+spr.InitCommand=function(self)
+ self:horizalign('HorizAlign_Left')
+end
+
+ Use for fractional alignment.
factor.
@@ -1530,10 +1540,18 @@ local n = r['PlayerNumber_P2']
It's usually more convenient to use , , , or rather than using Actor:tween() directly.
fAlign which should be a float in the range 0..1. An alignment of 0 is top aligned while an alignment of 1 is bottom aligned. See for the common case.
+ Set the fractional vertical alignment of the Actor according to fAlign which should be a float in the range 0..1. An alignment of 0 is top-aligned while an alignment of 1 is bottom-aligned.align. See for fractional alignment.
+ Set the of the Actor according to align.
+local spr = LoadActor('awesome.png')
+spr.InitCommand=function(self)
+ self:vertalign('VertAlign_Bottom')
+end
+
+ Use for fractional alignment.
Font attribute. It takes a font name a string,
+ The font can be specified using the Font attribute. It takes a font name as a string,
pathed relative to the current theme's ./Fonts/ directory.true if the order was changed.
true if the MusicWheel is currently handling Roulette selection.
false on failure.
+ n.
false on failure.
false on failure.
pn.
ProfileSlot.
+ Returns the profile directory for the provided ProfileSlot, formatted like /Save/LocalProfiles/00000001/.s has been played with the specified ProfileSlot.
pn's final grade.
+ pn's final grade.