プラグインファイルの追加

このコミットが含まれているのは:
routersys committed 2026-06-21 11:38:51 +09:00
1 親 de0e5d7f1c
コミット 0d04b30d24
36ファイル変更
+6148

検索条件に一致するファイルはありません

+21
ファイルの表示
@@ -0,0 +1,21 @@
using MoonSharp.Interpreter;
namespace LuaScript
{
internal static class Ymm4TableRegistrar
{
internal static void UpdateVariables(Table ymm4, AviUtlScriptContext ctx)
{
ymm4["group_index"] = ctx.GroupIndex;
ymm4["group_count"] = ctx.GroupCount;
ymm4["group_ratio"] = ctx.GroupCount > 0 ? ctx.GroupIndex / (double)ctx.GroupCount : 0d;
ymm4["timeline_totalframe"] = ctx.TimelineTotalFrame;
ymm4["timeline_totaltime"] = ctx.TimelineTotalTime;
ymm4["is_saving"] = ctx.IsSaving;
ymm4["time_ratio"] = ctx.TimeRatio;
ymm4["is_playing"] = ctx.IsPlaying;
ymm4["is_paused"] = ctx.IsPaused;
ymm4["scene_id"] = ctx.SceneId;
}
}
}