getTotalSeconds
Definition
-- @/lua/ge/extensions/core/replay.lua:65
local function getTotalSeconds()
return M.state.totalSeconds
end
Callers
@/lua/ge/extensions/editor/camPathEditor.lua
if linkReplay[0] and (core_replay.getState() == 'playback') then
core_replay.seek(M.currentPath.markers[1].time / core_replay.getTotalSeconds())
if (core_replay.getState() == 'playback') and core_replay.isPaused() then
if core_replay.getState() == 'playback' then
local totalTime = core_replay.getTotalSeconds()
if totalTime > 0 then
local relativePos = im.FloatPtr(core_replay.getPositionSeconds())
local maxSecs = core_replay.getTotalSeconds()
if im.SliderFloat('##replay slider', relativePos, 0, maxSecs, '%.1f', 1) then