LuaUtils
| Kind | class |
| Package | psychlua |
| Full name | psychlua.LuaUtils |
| Source | source/psychlua/LuaUtils.hx |
| Metadata | @:allow(psychlua.FunkinLua) |
Public methods
resolveClassCompat
static function resolveClassCompat(className:String):Class<Dynamic>
REFACTOR: root classes moved into packages; resolve legacy bare class names from scripts
| Parameter | Type | Default |
|---|---|---|
className | String | — |
getLuaTween
static function getLuaTween(options:Dynamic)
| Parameter | Type | Default |
|---|---|---|
options | Dynamic | — |
getTweenTypeByString
static function getTweenTypeByString(type:String = '')
buncho string stuffs
| Parameter | Type | Default |
|---|---|---|
type (optional) | String | '' |
getFlxEaseByString
static inline function getFlxEaseByString(ease:String = '')
Better optimized than using some getProperty shit or idk
| Parameter | Type | Default |
|---|---|---|
ease (optional) | String | '' |
blendModeFromString
static inline function blendModeFromString(blend:String):BlendMode
| Parameter | Type | Default |
|---|---|---|
blend | String | — |
cameraFromString
static inline function cameraFromString(cam:String):FlxCamera
| Parameter | Type | Default |
|---|---|---|
cam | String | — |
getCam
static function getCam(obj:String):Dynamic
alias for above, helper function basically
| Parameter | Type | Default |
|---|---|---|
obj | String | — |
luaTrace
static function luaTrace(lua:#if LUA_ALLOWED State #else Dynamic #end, text:String, ignoreCheck:Bool = false, deprecated:Bool = false, color:FlxColor = FlxColor.WHITE)
| Parameter | Type | Default |
|---|---|---|
lua | #if LUA_ALLOWED State #else Dynamic #end | — |
text | String | — |
ignoreCheck (optional) | Bool | false |
deprecated (optional) | Bool | false |
color (optional) | FlxColor | FlxColor.WHITE |
getErrorMessage
static function getErrorMessage(lua:#if LUA_ALLOWED State #else Dynamic #end, status:Int):String
| Parameter | Type | Default |
|---|---|---|
lua | #if LUA_ALLOWED State #else Dynamic #end | — |
status | Int | — |
isOfTypes
static function isOfTypes(value:Any, types:Array<Dynamic>)
| Parameter | Type | Default |
|---|---|---|
value | Any | — |
types | Array<Dynamic> | — |
getBool
static function getBool(lua:#if LUA_ALLOWED State #else Dynamic #end, variable:String)
| Parameter | Type | Default |
|---|---|---|
lua | #if LUA_ALLOWED State #else Dynamic #end | — |
variable | String | — |
typeToString
static function typeToString(type:Int):String
REFACTOR: moved from FunkinLua; pure/stateless helpers
| Parameter | Type | Default |
|---|---|---|
type | Int | — |
getInstance
static inline function getInstance()
setVarInArray
static function setVarInArray(instance:Dynamic, variable:String, value:Dynamic):Any
| Parameter | Type | Default |
|---|---|---|
instance | Dynamic | — |
variable | String | — |
value | Dynamic | — |
getVarInArray
static function getVarInArray(instance:Dynamic, variable:String):Any
| Parameter | Type | Default |
|---|---|---|
instance | Dynamic | — |
variable | String | — |
getObjectDirectly
static function getObjectDirectly(objectName:String, checkForTextsToo:Bool = true):Dynamic
| Parameter | Type | Default |
|---|---|---|
objectName | String | — |
checkForTextsToo (optional) | Bool | true |
getPropertyLoopThingWhatever
static function getPropertyLoopThingWhatever(killMe:Array<String>, checkForTextsToo:Bool = true, getProperty:Bool = true):Dynamic
| Parameter | Type | Default |
|---|---|---|
killMe | Array<String> | — |
checkForTextsToo (optional) | Bool | true |
getProperty (optional) | Bool | true |
addAnimByIndices
static function addAnimByIndices(obj:String, name:String, prefix:String, indices:String, framerate:Int = 24, loop:Bool = false)
| Parameter | Type | Default |
|---|---|---|
obj | String | — |
name | String | — |
prefix | String | — |
indices | String | — |
framerate (optional) | Int | 24 |
loop (optional) | Bool | false |