NeedShowSave()

grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » NeedShowSave()
Version 2.1

説明

The NeedShowSave Lua function returns a boolean indicating if there are unsaved changes to the showfile.

引数

この関数は、引数を受け取りません。

戻り値

  • boolean:
    The boolean returns True if there are unsaved changes to the show file. False indicates that the show file has not changed since the last save. These indications do not include changes to the playback state of the show.

This example prints feedback indicating if the show file should be saved or not.

Lua
return function ()
-- Check if the show should be saved.
if NeedShowSave() then
Printf("You should save your showfile.")
else
Printf("You do not need to save your showfile.")
end
end