Lua 関数の IncProgress は、指定された整数値に基づいて、プログレスバーの進捗位置を増減させます。対象となるプログレスバーは、入力引数のハンドルで指定します。プログレスバーは、StartProgress 関数によって作成しておく必要があります。
プログレスバーの詳細や、関連する他の関数へのリンクについては、プログレスバー を参照してください。
この関数は何も返しません。
以下の2つの例では、StartProgress 関数で作成されたプログレスバーの進捗位置を増減させています。
return function()
-- Increase the current value for a progress bar with the matching handle
IncProgress(progressHandle, 1)
end
return function()
-- Decrease the current value for a progress bar with the matching handle
IncProgress(progressHandle, -1)
end