Codename LogoCodename Logo

funkin.backend.utils.NativeAPI

APIWiki

Class for functions that talk to a lower level than haxe, such as message boxes, and more. Some functions might not have effect on some platforms.

Static methods

View in GitHub

@:value({ useAbsol : true })staticaddFileAttributes(path:String, attrib:OneOfTwo<FileAttribute, Int>, useAbsol:Bool = true):Int

Removes from the specified file's (or folder) one (or more) specific attribute.

View in GitHub

staticallocConsole():Void

Allocates a new console. The console will automatically be opened

View in GitHub

@:value({ useAbsol : true })staticgetFileAttributes(path:String, useAbsol:Bool = true):FileAttributeWrapper

Gets the specified file's (or folder) attributes and passes it to FileAttributeWrapper.

View in GitHub

@:value({ useAbsol : true })staticgetFileAttributesRaw(path:String, useAbsol:Bool = true):Int

Gets the specified file's (or folder) attributes.

View in GitHub

@:value({ useAbsol : true })staticremoveFileAttributes(path:String, attrib:OneOfTwo<FileAttribute, Int>, useAbsol:Bool = true):Int

Removes from the specified file's (or folder) one (or more) specific attribute.

View in GitHub

@:value({ backgroundColor : NONE, foregroundColor : NONE })staticsetConsoleColors(foregroundColor:ConsoleColor = NONE, backgroundColor:ConsoleColor = NONE):Void

Sets the console colors

View in GitHub

staticsetDarkMode(title:String, enable:Bool):Void

View in GitHub

@:value({ useAbsol : true })staticsetFileAttributes(path:String, attrib:OneOfThree<FileAttribute, FileAttributeWrapper, Int>, useAbsol:Bool = true):Int

Sets the specified file's (or folder) attributes. If it fails, the return value is 0.

View in GitHub

@:value({ icon : MSG_WARNING })staticshowMessageBox(caption:String, message:String, icon:MessageBoxIcon = MSG_WARNING):Void

Shows a message box