Skip to content

Commit

Permalink
Merge pull request #2222 from andy840119/implement-the-tap-area
Browse files Browse the repository at this point in the history
Implement the tap area for the recording mode.
  • Loading branch information
andy840119 authored Apr 21, 2024
2 parents 45b0b3f + 66ee192 commit c291b58
Show file tree
Hide file tree
Showing 10 changed files with 621 additions and 169 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,19 @@ public void UpdateCaret(RecordingTimeTagCaretPosition caret)

for (int i = 0; i < paddingIndicator; i++)
{
bool isFirst = i == 0;
bool isLast = i == paddingIndicator - 1;

pendingTextIndexes.Add(new DrawableTextIndex
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(12),
Margin = new MarginPadding(5),
Margin = new MarginPadding(5)
{
Left = isFirst ? 5 : 0,
Right = isLast ? 5 : 0,
},
State = caret.TimeTag.Index.State,
Colour = colours.Yellow,
Alpha = 0.5f,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ static IEnumerable<Drawable> createItemsForTimeTagEditStep(TimeTagEditStep timeT
new MoveToPreviousIndexButton(),
new MoveToNextIndexButton(),
new MoveToLastIndexButton(),
new Separator(),
new SetTimeTagTimeButton(),
new ClearTimeTagTimeButton(),
new ClearAllTimeTagTimeButton(),
},
TimeTagEditStep.Adjust => new Drawable[]
{
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ private void load(IEditTimeTagModeState editTimeTagModeState)
TimeTagEditStep.Recording => new Drawable[]
{
new TimeTagEditStepSection(),
new TimeTagRecordingToolSection(),
new TimeTagRecordingConfigSection(),
new RecordTimeTagActionReceiver(),
},
TimeTagEditStep.Adjust => new Drawable[]
{
Expand Down

This file was deleted.

Loading

0 comments on commit c291b58

Please sign in to comment.