DGE Logo

Dragon Engine

Hello! Welcome to Dragon Engine Documentation🐲.
Thing Dragon Engine have here.

2nd Opponent Strums(1.5.5+)

Open Chart editor. open Song tab and turn on called "Has 2nd Strums"



Custom Field(1.6.0+)

Reference:

how to use it Learn More(Lua)


Lua Set Function:

setWindowDarkMode()(1.5.7+)

set window border to darkmode.

setWindowLightMode()(1.5.7+)

set window border to lightmode.

setWindowX(value:Int, duration:Float = 0.0, ease:String)(1.5.8+)(Deprecated)

set window X property.
value: any int number for x window position.
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method

setWindowY(value:Int, duration:Float = 0.0, ease:String)(1.5.8+)(Deprecated)

set window Y property.
value: any int number for y window position.
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method

setWindowWidth(value:Int, duration:Float = 0.0, ease:String)(1.5.8+)(Deprecated)

set window Width property.
value: any int number for width window.
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method

setWindowHeight(value:Int, duration:Float = 0.0, ease:String)(1.5.8+)(Deprecated)

set window Height property.
value: any int number for height window.
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method

setWindowProperty(x:Null<Int>, y:Null<Int>, width:Null<Float>, height:Null<Float>, duration:Float = 0, ease:String, scale:Bool = false)(1.5.9.5+)

set window property.
x: window x position(leave empty to ignore).
y: window y position(leave empty to ignore).
width: window width(leave empty to ignore).
height: window height(leave empty to ignore).
duration: duration for transition.
ease: The tweening method used, example: 'linear', 'circInOut'. All Tween Method
scale: if checked it will use mutliple screen resolution(0 to 1(max)).

resetWindow()

reset window to last window property before load song.

setSecondOpponent(value:Bool, trasition:Bool, trasition2:Bool)(1.6.0+)

set between 2nd strums or not.
value:toggle of wnd strums or normal
trasition: should add strums transition for player.
trasition2: should add strums transition for opponent.

changeGamemode(name:String = 'none', transition:Bool = true)(1.5.9.2+)

set gamemode.
name: name of gamemode.
transition: Transition notes(only for build in gamemode).


Lua Object Function:

createCustomStrum(tag:String, data:Int = 4, camera:String = 'hud', scroilX:Float = 0, scrollY:Float = 0, downscroll:Null<Bool>)

tag: tag of for custom field.
data: how much strum to spawn.
camera: camera target to custom field(selection: 'game', 'hud', 'other').
scrollX : scroll speed of x.
scrollY : scroll speed of y.
downscroll: should up scroll?(if not set it use setting use)

removeStrum(tag:String)

tag: name of custom field to remove.


Lua Get Function:

getResolutionWidth()(1.5.8+)

returning monitor width resolution. Shortcut of `getPropertyFromClass('openfl.Lib', 'application.application.window.display.bounds.width')`

getResolutionHeight()(1.5.8+)

returning monitor height resolution. Shortcut of `getPropertyFromClass('openfl.Lib', 'application.application.window.display.bounds.height')`


Lua Callback Function:

opponentNoteMiss(id:Int, noteData:Int, noteType:String, isSustainNote:Bool)(1.5.7+)

same as noteMiss(id:Int, noteData:Int, noteType:String, isSustainNote:Bool) but for opponent and most use for bothside and opponent gamemode.

opponentNoteMissPress(noteData:Int)(1.5.7+)

same as noteMiss(noteData:Int) but for opponent and most use for opponent gamemode.

opponentNoteMissPress(noteData:Int)(1.5.7+)

same as noteMiss(noteData:Int) but for opponent and most use for opponent gamemode.

onChangeGamemode(name:String)(1.6.0.6+)

function when change gamemode(from changeGamemode()).

onChangeOpponent(name:String)(1.6.0.6+)

function when change 2nd strums(from setSecondOpponent()).


Lua Variable Function:

gamemode(1.5.9+)

name of currently gamemode use.


Note Type Prefix:

-opponent

set note type to opponent side. Example: notetypename-opponent

-player

set note type to player side. Example: notetypename-player

-gf

set note type to gf note. Example: notetypename-gf. also can combine with -player or -opponent Example: notetypename-gf-opponent


End of Page.