Right-clicking the numbered row offers Add Start/End Marker Here and Remove Markers; Shift+Comma / Shift+Period (configurable) set them at the playhead. Markers are faded playheads, with the numbers outside their range darkened, and playback loops within them. They are saved as StartMarker/EndMarker on the editor's copy (SourceDocument) only, as one undoable edit each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
334 B
C++
23 lines
334 B
C++
#pragma once
|
|
|
|
namespace anm2ed
|
|
{
|
|
class Playback
|
|
{
|
|
public:
|
|
float time{};
|
|
bool isPlaying{};
|
|
bool isFinished{};
|
|
|
|
void toggle();
|
|
void timing_reset();
|
|
void clamp(int);
|
|
void tick(int, int, int, bool, float);
|
|
void decrement(int);
|
|
void increment(int);
|
|
|
|
private:
|
|
float tickAccumulator{};
|
|
};
|
|
}
|