Merge pull request #551 from cklidify/modchart-additions
Added setActorScaleXY, setActorFlipX/Y, and setStrumlineY to modcharting
This commit is contained in:
commit
4359be0666
@ -400,6 +400,13 @@ class ModchartState
|
|||||||
PlayState.instance.camHUD.zoom = zoomAmount;
|
PlayState.instance.camHUD.zoom = zoomAmount;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// strumline
|
||||||
|
|
||||||
|
Lua_helper.add_callback(lua, "setStrumlineY", function(y:Float)
|
||||||
|
{
|
||||||
|
PlayState.instance.strumLine.y = y;
|
||||||
|
});
|
||||||
|
|
||||||
// actors
|
// actors
|
||||||
|
|
||||||
Lua_helper.add_callback(lua,"getRenderedNotes", function() {
|
Lua_helper.add_callback(lua,"getRenderedNotes", function() {
|
||||||
@ -513,6 +520,20 @@ class ModchartState
|
|||||||
getActorByName(id).setGraphicSize(Std.int(getActorByName(id).width * scale));
|
getActorByName(id).setGraphicSize(Std.int(getActorByName(id).width * scale));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Lua_helper.add_callback(lua, "setActorScaleXY", function(scaleX:Float, scaleY:Float, id:String)
|
||||||
|
{
|
||||||
|
getActorByName(id).setGraphicSize(Std.int(getActorByName(id).width * scaleX), Std.int(getActorByName(id).height * scaleY));
|
||||||
|
});
|
||||||
|
|
||||||
|
Lua_helper.add_callback(lua, "setActorFlipX", function(flip:Bool, id:String)
|
||||||
|
{
|
||||||
|
getActorByName(id).flipX = flip;
|
||||||
|
});
|
||||||
|
|
||||||
|
Lua_helper.add_callback(lua, "setActorFlipY", function(flip:Bool, id:String)
|
||||||
|
{
|
||||||
|
getActorByName(id).flipY = flip;
|
||||||
|
});
|
||||||
|
|
||||||
Lua_helper.add_callback(lua,"getActorWidth", function (id:String) {
|
Lua_helper.add_callback(lua,"getActorWidth", function (id:String) {
|
||||||
return getActorByName(id).width;
|
return getActorByName(id).width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user