1
0
mirror of synced 2025-02-21 21:00:33 +01:00

Fix #311 (Add a SetRotation(angle, filename) function, usable in Lua backgrounds)

This commit is contained in:
0auBSQ 2022-11-05 04:13:47 +09:00
parent 5497db06b8
commit 1790b1e9be

View File

@ -52,6 +52,13 @@ namespace TJAPlayer3
Textures[fileName].vc拡大縮小倍率.Y = (float)yscale;
}
}
public void SetRotation(double angle, string fileName)
{
if (Textures[fileName] != null)
{
Textures[fileName].fZ軸中心回転 = (float)(angle * Math.PI / 180);
}
}
public void SetColor(double r, double g, double b, string fileName)
{
if (Textures[fileName] != null)