删除没用的debug
This commit is contained in:
parent
1c015f96e5
commit
f1b87068ab
@ -308,9 +308,6 @@ void FUtils::CreateDefaultTimelineSave(const FString& SavedPath, const FTimeline
|
|||||||
MemoryWriter << ClipLength;
|
MemoryWriter << ClipLength;
|
||||||
MemoryWriter << AllClips;
|
MemoryWriter << AllClips;
|
||||||
FFileHelper::SaveArrayToFile(SavedData, *SavedPath);
|
FFileHelper::SaveArrayToFile(SavedData, *SavedPath);
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("CreateDefaultTimelineSave %s"), *SavedPath));
|
|
||||||
// FFileHelper::LoadFileToArray(SavedData, *FPaths::Combine(FPaths::ProjectSavedDir(), Type == FTimelineInfo::ETimelineType::Main ? TEXT("Default.sav") : TEXT("DefaultFX.sav")));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TArray<FEncodeVideoInfo> FUtils::TrackEncodeVideo(const FTrackData& TrackData, const FString& ExportPath)
|
TArray<FEncodeVideoInfo> FUtils::TrackEncodeVideo(const FTrackData& TrackData, const FString& ExportPath)
|
||||||
@ -367,7 +364,6 @@ TArray<FEncodeVideoInfo> FUtils::TrackEncodeVideo(const FTrackData& TrackData, c
|
|||||||
|
|
||||||
|
|
||||||
FString OutputFile = "\"" + FPaths::ConvertRelativePathToFull(ExportPath + FString::FromInt(i) + TEXT(".mp4")) + "\"";
|
FString OutputFile = "\"" + FPaths::ConvertRelativePathToFull(ExportPath + FString::FromInt(i) + TEXT(".mp4")) + "\"";
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("OutputFile %s"), *OutputFile));
|
|
||||||
int32 StartFrame = (TempClipData.VideoStartFrame) % static_cast<int>(FGlobalData::GlobalFPS);;
|
int32 StartFrame = (TempClipData.VideoStartFrame) % static_cast<int>(FGlobalData::GlobalFPS);;
|
||||||
int32 EndFrame = (TempClipData.VideoEndFrame) % static_cast<int>(FGlobalData::GlobalFPS);
|
int32 EndFrame = (TempClipData.VideoEndFrame) % static_cast<int>(FGlobalData::GlobalFPS);
|
||||||
|
|
||||||
@ -988,7 +984,6 @@ FString FUtils::GetMsFromString(FString TimeString)
|
|||||||
|
|
||||||
// 将FTimespan对象转换为毫秒
|
// 将FTimespan对象转换为毫秒
|
||||||
int64 Milliseconds = Timespan.GetTotalMilliseconds();
|
int64 Milliseconds = Timespan.GetTotalMilliseconds();
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("%s -> %s"), *TimeString, *FString::FromInt(Milliseconds)));
|
|
||||||
return FString::FromInt(Milliseconds);
|
return FString::FromInt(Milliseconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,6 @@ public:
|
|||||||
static FEncodeVideoInfo CombineAudio(const FEncodeVideoInfo& LeftEncodeData, const FEncodeVideoInfo& RightEncodeData, const FString& ExportPath);
|
static FEncodeVideoInfo CombineAudio(const FEncodeVideoInfo& LeftEncodeData, const FEncodeVideoInfo& RightEncodeData, const FString& ExportPath);
|
||||||
static FString CurtainFullPath(const FString& GroupName)
|
static FString CurtainFullPath(const FString& GroupName)
|
||||||
{
|
{
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Red, FGlobalData::BasePath);
|
|
||||||
return FPaths::Combine(FGlobalData::BasePath, FGlobalData::CurrentProjectName, TEXT("Curtain"), GroupName + TEXT(".bin"));
|
return FPaths::Combine(FGlobalData::BasePath, FGlobalData::CurrentProjectName, TEXT("Curtain"), GroupName + TEXT(".bin"));
|
||||||
};
|
};
|
||||||
static FString GroupFullPath(const FString& GroupName)
|
static FString GroupFullPath(const FString& GroupName)
|
||||||
|
@ -207,9 +207,6 @@ void DragDropOperator::OnDragOver(const FGeometry& MyGeometry, const FDragDropEv
|
|||||||
const FVector2D ScrollEndPosition = Timeline->TrackBodyScrollBox->GetCachedGeometry().AbsoluteToLocal(DragDropEvent.GetScreenSpacePosition()) + Timeline->TrackBodyScrollBox->GetScrollOffset();
|
const FVector2D ScrollEndPosition = Timeline->TrackBodyScrollBox->GetCachedGeometry().AbsoluteToLocal(DragDropEvent.GetScreenSpacePosition()) + Timeline->TrackBodyScrollBox->GetScrollOffset();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 0.1f, FColor::Red, FString::Printf(TEXT("StartPosition:%s"), *ScrollStartPosition.ToString()));
|
|
||||||
|
|
||||||
if (StartPosition.X < CurrentPosition.X && StartPosition.Y < CurrentPosition.Y)
|
if (StartPosition.X < CurrentPosition.X && StartPosition.Y < CurrentPosition.Y)
|
||||||
{
|
{
|
||||||
Timeline->RenderBoxPos[0] = StartPosition;
|
Timeline->RenderBoxPos[0] = StartPosition;
|
||||||
@ -335,8 +332,6 @@ void DragDropOperator::OnDragOver(const FGeometry& MyGeometry, const FDragDropEv
|
|||||||
{
|
{
|
||||||
if (Local < 1.0 && Local >= 0)
|
if (Local < 1.0 && Local >= 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("Local: %f"), Local));
|
|
||||||
ColorBar->ColorPtr->R = (ColorBar->GetCachedGeometry().AbsoluteToLocal(DragDropEvent.GetScreenSpacePosition()).X / ColorBar->GetCachedGeometry().Size.X) * 360.0;
|
ColorBar->ColorPtr->R = (ColorBar->GetCachedGeometry().AbsoluteToLocal(DragDropEvent.GetScreenSpacePosition()).X / ColorBar->GetCachedGeometry().Size.X) * 360.0;
|
||||||
ColorBar->OnColorCallback.ExecuteIfBound(ColorBar->ColorPtr->R);
|
ColorBar->OnColorCallback.ExecuteIfBound(ColorBar->ColorPtr->R);
|
||||||
}
|
}
|
||||||
@ -347,8 +342,6 @@ void DragDropOperator::OnDragOver(const FGeometry& MyGeometry, const FDragDropEv
|
|||||||
{
|
{
|
||||||
if (Local < 1.0 && Local >= 0)
|
if (Local < 1.0 && Local >= 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("Local: %f"), Local));
|
|
||||||
ColorBar->ColorPtr->G = (ColorBar->GetCachedGeometry().AbsoluteToLocal(DragDropEvent.GetScreenSpacePosition()).X / ColorBar->GetCachedGeometry().Size.X) * 360.0;
|
ColorBar->ColorPtr->G = (ColorBar->GetCachedGeometry().AbsoluteToLocal(DragDropEvent.GetScreenSpacePosition()).X / ColorBar->GetCachedGeometry().Size.X) * 360.0;
|
||||||
ColorBar->OnColorCallback.ExecuteIfBound(ColorBar->ColorPtr->G);
|
ColorBar->OnColorCallback.ExecuteIfBound(ColorBar->ColorPtr->G);
|
||||||
}
|
}
|
||||||
@ -477,8 +470,6 @@ void DragDropOperator::OnDragOver(const FGeometry& MyGeometry, const FDragDropEv
|
|||||||
if (TimelineClip == Clip)
|
if (TimelineClip == Clip)
|
||||||
continue;;
|
continue;;
|
||||||
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 0.1f, FColor::Red, FString::Printf(TEXT("ClipStartFrame:%d, LoopClipFrame:%d"), TimelineClip->ClipData->ClipStartFrame + NewPos, Clip->ClipData->ClipStartFrame));
|
|
||||||
|
|
||||||
if ((TimelineClip->ClipData->ClipStartFrame + NewPos) == Clip->ClipData->ClipEndFrame)
|
if ((TimelineClip->ClipData->ClipStartFrame + NewPos) == Clip->ClipData->ClipEndFrame)
|
||||||
{
|
{
|
||||||
static_cast<SCutMainWindow*>(Body->MainWidgetInterface)->bRenderLine = true;
|
static_cast<SCutMainWindow*>(Body->MainWidgetInterface)->bRenderLine = true;
|
||||||
|
@ -38,7 +38,6 @@ void SEffectPreset::Construct(const FArguments& InArgs)
|
|||||||
{
|
{
|
||||||
TArray<uint8> Data;
|
TArray<uint8> Data;
|
||||||
FString LoadPath = FUtils::GetResourcesPath(TEXT("Presets/") + PresetPath, true);
|
FString LoadPath = FUtils::GetResourcesPath(TEXT("Presets/") + PresetPath, true);
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 10.0f, FColor::Cyan, LoadPath);
|
|
||||||
FFileHelper::LoadFileToArray(Data, *LoadPath);
|
FFileHelper::LoadFileToArray(Data, *LoadPath);
|
||||||
|
|
||||||
FMemoryReader MemoryReader(Data);
|
FMemoryReader MemoryReader(Data);
|
||||||
@ -75,7 +74,6 @@ void SEffectPreset::Construct(const FArguments& InArgs)
|
|||||||
.OnClicked_Lambda([this]()
|
.OnClicked_Lambda([this]()
|
||||||
{
|
{
|
||||||
MainInterface->UpdateProperties(this);
|
MainInterface->UpdateProperties(this);
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 10.0f, FColor::Cyan, TEXT("Clicked"));
|
|
||||||
return FReply::Handled().DetectDrag(SharedThis(this), EKeys::LeftMouseButton);
|
return FReply::Handled().DetectDrag(SharedThis(this), EKeys::LeftMouseButton);
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
@ -718,20 +718,8 @@ void SCutMainWindow::Tick(const FGeometry& AllottedGeometry, const double InCurr
|
|||||||
TotalTime = 0;
|
TotalTime = 0;
|
||||||
}
|
}
|
||||||
TotalTime += InDeltaTime;
|
TotalTime += InDeltaTime;
|
||||||
// for (int32 i = 0; i < EffectCardsPanel->EffectCardGroups.Num(); i++)
|
|
||||||
// {
|
|
||||||
// for (int32 j = 0; j < EffectCardsPanel->EffectCardGroups[i].Cards.Num(); j++)
|
|
||||||
// {
|
|
||||||
// if (EffectCardsPanel->EffectCardGroups[i].Cards[j].Name == TEXT("鲨鱼"))
|
|
||||||
// {
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 10.0f, FColor::Red, FString::Printf(TEXT("TestVar: %d"), EffectCardsPanel->EffectCardGroups[i].Cards[j].ID));
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
SCH_DEBUG_INT32(114514, "TestVar");
|
SCH_DEBUG_INT32(114514, "TestVar");
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 10.0f, FColor::Red, FString::Printf(TEXT("TestVar: %d"), SCH_DEBUG_INT32(114514, "TestVar")));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 SCutMainWindow::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry,
|
int32 SCutMainWindow::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry,
|
||||||
@ -937,7 +925,6 @@ void SCutMainWindow::OpenTimeline(const FString& TimelineName, bool NeedSaveBefo
|
|||||||
FTimelineInfo TimelineInfo;
|
FTimelineInfo TimelineInfo;
|
||||||
// 拿到TimelineName路径中的名字,也就是倒数第四位开始,去掉后缀
|
// 拿到TimelineName路径中的名字,也就是倒数第四位开始,去掉后缀
|
||||||
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TimelineName);
|
|
||||||
if (CutTimeline->LoadTimeline(TimelineName, TimelineInfo))
|
if (CutTimeline->LoadTimeline(TimelineName, TimelineInfo))
|
||||||
{
|
{
|
||||||
CutTimeline->TimelineInfo = TimelineInfo;
|
CutTimeline->TimelineInfo = TimelineInfo;
|
||||||
@ -1388,7 +1375,6 @@ void SCutMainWindow::ExportProject(const FString& ExportPath)
|
|||||||
FString XMLExportPath = FPaths::ConvertRelativePathToFull(FPaths::Combine(ExportPath, FGlobalData::CurrentProjectName + TEXT("_XML"), TEXT("Process.xml")));
|
FString XMLExportPath = FPaths::ConvertRelativePathToFull(FPaths::Combine(ExportPath, FGlobalData::CurrentProjectName + TEXT("_XML"), TEXT("Process.xml")));
|
||||||
TArray<uint8> Data;
|
TArray<uint8> Data;
|
||||||
FFileHelper::SaveArrayToFile(Data, *XMLExportPath);
|
FFileHelper::SaveArrayToFile(Data, *XMLExportPath);
|
||||||
//GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, XMLExportPath);
|
|
||||||
|
|
||||||
FFileHelper::SaveArrayToFile(Data, TEXT("C:\\temp\\Process.xml"));
|
FFileHelper::SaveArrayToFile(Data, TEXT("C:\\temp\\Process.xml"));
|
||||||
tinyxml2::XMLError NewError = Document.SaveFile("C:\\temp\\Process.xml");
|
tinyxml2::XMLError NewError = Document.SaveFile("C:\\temp\\Process.xml");
|
||||||
@ -1730,7 +1716,7 @@ tinyxml2::XMLElement* SCutMainWindow::GetDeviceElement(tinyxml2::XMLElement* Par
|
|||||||
});
|
});
|
||||||
if (NewClipArrayData.Num() > 0)
|
if (NewClipArrayData.Num() > 0)
|
||||||
{
|
{
|
||||||
if (NewClipArrayData[0].ClipStartFrame != 0)
|
if (NewClipArrayData[0].ClipStartFrame != 0 && GetSelectIsGlobal(GetCurrentSelectCurtain()))
|
||||||
{
|
{
|
||||||
tinyxml2::XMLElement* Event1 = Event_List->InsertNewChildElement("Event");
|
tinyxml2::XMLElement* Event1 = Event_List->InsertNewChildElement("Event");
|
||||||
Event1->InsertNewChildElement("Value")->InsertNewText("0");
|
Event1->InsertNewChildElement("Value")->InsertNewText("0");
|
||||||
@ -1739,8 +1725,6 @@ tinyxml2::XMLElement* SCutMainWindow::GetDeviceElement(tinyxml2::XMLElement* Par
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int32 Count = 0;
|
int32 Count = 0;
|
||||||
for (int32 k = 0; k < NewClipArrayData.Num(); k++)
|
for (int32 k = 0; k < NewClipArrayData.Num(); k++)
|
||||||
{
|
{
|
||||||
@ -1857,7 +1841,7 @@ tinyxml2::XMLElement* SCutMainWindow::GetDeviceElement(tinyxml2::XMLElement* Par
|
|||||||
|
|
||||||
if (TempClipDataArray.Num() <= k + 1)
|
if (TempClipDataArray.Num() <= k + 1)
|
||||||
{
|
{
|
||||||
if (TempClipDataArray[k].bIsCycle == false)
|
if (TempClipDataArray[k].bIsCycle == false && GetSelectIsGlobal(GetCurrentSelectCurtain()))
|
||||||
{
|
{
|
||||||
tinyxml2::XMLElement* NewSpeicalEffect = SpeicalEffect->InsertNewChildElement("Special_Effect");
|
tinyxml2::XMLElement* NewSpeicalEffect = SpeicalEffect->InsertNewChildElement("Special_Effect");
|
||||||
NewSpeicalEffect->InsertNewChildElement("Mode")->InsertNewText("0");
|
NewSpeicalEffect->InsertNewChildElement("Mode")->InsertNewText("0");
|
||||||
@ -2904,14 +2888,14 @@ bool SCutMainWindow::GetSelectIsGlobal(const FGuid& Guid)
|
|||||||
{
|
{
|
||||||
if (Group.Guid == Guid)
|
if (Group.Guid == Guid)
|
||||||
{
|
{
|
||||||
return Group.bIsActive;
|
return Group.IsGlobal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (FEffectCardProperty& Property : Group.Cards)
|
for (FEffectCardProperty& Property : Group.Cards)
|
||||||
{
|
{
|
||||||
if (Property.Guid == Guid)
|
if (Property.Guid == Guid)
|
||||||
{
|
{
|
||||||
return Property.bIsActive = true;
|
return Property.IsGlobal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ void SCutTimeline::Construct(const FArguments& InArgs)
|
|||||||
float TickOffset = TickScrollBox->GetScrollOffset();
|
float TickOffset = TickScrollBox->GetScrollOffset();
|
||||||
float TickMaxOffset = TickScrollBox->GetScrollOffsetOfEnd();
|
float TickMaxOffset = TickScrollBox->GetScrollOffsetOfEnd();
|
||||||
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::White, FString::Printf(TEXT("Offset: %f, MaxOffset: %f, TickOffset: %f, TickMaxOffset: %f"), Offset, MaxOffset, TickOffset, TickMaxOffset));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -289,6 +289,12 @@ void SCutTimeline::Construct(const FArguments& InArgs)
|
|||||||
TrackHeadScrollBox->SetScrollOffset(ScrollValue);
|
TrackHeadScrollBox->SetScrollOffset(ScrollValue);
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
+ SVerticalBox::Slot()
|
||||||
|
.SizeParam(FAuto())
|
||||||
|
[
|
||||||
|
SNew(SBox)
|
||||||
|
.HeightOverride(15)
|
||||||
|
]
|
||||||
]
|
]
|
||||||
+ SHorizontalBox::Slot()
|
+ SHorizontalBox::Slot()
|
||||||
.SizeParam(FStretch(0.03f))
|
.SizeParam(FStretch(0.03f))
|
||||||
@ -312,6 +318,12 @@ void SCutTimeline::Construct(const FArguments& InArgs)
|
|||||||
TrackGroupScrollBox->SetScrollOffset(ScrollValue);
|
TrackGroupScrollBox->SetScrollOffset(ScrollValue);
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
+ SVerticalBox::Slot()
|
||||||
|
.SizeParam(FAuto())
|
||||||
|
[
|
||||||
|
SNew(SBox)
|
||||||
|
.HeightOverride(15)
|
||||||
|
]
|
||||||
// Track Head
|
// Track Head
|
||||||
|
|
||||||
]
|
]
|
||||||
@ -542,7 +554,6 @@ TArray<FClipData> SCutTimeline::GetClipData()
|
|||||||
FReply SCutTimeline::OnMouseMove(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent)
|
FReply SCutTimeline::OnMouseMove(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent)
|
||||||
{
|
{
|
||||||
FVector2D Vector = MyGeometry.AbsoluteToLocal(MouseEvent.GetScreenSpacePosition());
|
FVector2D Vector = MyGeometry.AbsoluteToLocal(MouseEvent.GetScreenSpacePosition());
|
||||||
GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Red, FString::Printf(TEXT("X:%f,Y:%f"), Vector.X, Vector.Y));
|
|
||||||
return SCompoundWidget::OnMouseMove(MyGeometry, MouseEvent);
|
return SCompoundWidget::OnMouseMove(MyGeometry, MouseEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -651,15 +651,22 @@ int32 STimelineClip::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGe
|
|||||||
float DownSample = 4;
|
float DownSample = 4;
|
||||||
|
|
||||||
// Draw Audio Waveform
|
// Draw Audio Waveform
|
||||||
const float RangeStart = // MainWidgetInterface->GetCutTimeline()->TrackBodyHScrollBox->GetCachedGeometry().GetLocalPositionAtCoordinates(FVector2D(0, 0)).X;
|
|
||||||
// MainWidgetInterface->GetSelf()->GetCachedGeometry().GetLocalPositionAtCoordinates(MainWidgetInterface->GetCutTimeline()->TimelineMainContentVerticalBox->GetCachedGeometry().GetLocalPositionAtCoordinates(FVector2D(0, 0))).X;
|
const float RangeStart = MainWidgetInterface->GetSelf()->GetCachedGeometry().AbsoluteToLocal(
|
||||||
MainWidgetInterface->GetCutTimeline()->TimelineMainContentVerticalBox->GetCachedGeometry().Position.X;
|
MainWidgetInterface->GetCutTimeline()->TimelineMainContentVerticalBox->GetCachedGeometry().AbsolutePosition).X;
|
||||||
const float RangeEnd = // MainWidgetInterface->GetCutTimeline()->TrackBodyScrollBox->GetCachedGeometry().GetLocalPositionAtCoordinates(FVector2D(MainWidgetInterface->GetCutTimeline()->TrackBodyScrollBox->GetCachedGeometry().GetLocalSize().X, 0)).X;
|
// MainWidgetInterface->GetCutTimeline()->TimelineMainContentVerticalBox->GetCachedGeometry().LocalToAbsolute(FVector2D(0, 0)).X;
|
||||||
MainWidgetInterface->GetCutTimeline()->TimelineMainContentVerticalBox->GetCachedGeometry().GetLocalSize().X;
|
|
||||||
const float CurrentStartRange = AllottedGeometry.LocalToAbsolute(FVector2D(0, 0)).X;
|
const float RangeEnd = MainWidgetInterface->GetSelf()->GetCachedGeometry().GetLocalSize().X;
|
||||||
|
|
||||||
|
// MainWidgetInterface->GetCutTimeline()->TimelineMainContentVerticalBox->GetCachedGeometry().GetLocalSize().X;
|
||||||
|
const float CurrentStartRange = AllottedGeometry.GetAbsolutePosition().X;
|
||||||
const float CurrentEndRange = AllottedGeometry.LocalToAbsolute(FVector2D(AllottedGeometry.GetLocalSize().X, 0)).X;
|
const float CurrentEndRange = AllottedGeometry.LocalToAbsolute(FVector2D(AllottedGeometry.GetLocalSize().X, 0)).X;
|
||||||
|
|
||||||
|
// GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Red, FString::FromInt(CurrentStartRange));
|
||||||
|
// GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Yellow, FString::FromInt(CurrentEndRange));
|
||||||
|
// GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Green, FString::FromInt(RangeStart));
|
||||||
|
// GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Blue, FString::FromInt(RangeEnd));
|
||||||
|
//
|
||||||
|
|
||||||
int32 CropStartFrameOffset = ((CurrentStartRange * -1) + RangeStart > 0 ? (CurrentStartRange * -1) + RangeStart : 0) / FGlobalData::DefaultTimeTickSpace;
|
int32 CropStartFrameOffset = ((CurrentStartRange * -1) + RangeStart > 0 ? (CurrentStartRange * -1) + RangeStart : 0) / FGlobalData::DefaultTimeTickSpace;
|
||||||
if (CurrentEndRange < RangeStart)
|
if (CurrentEndRange < RangeStart)
|
||||||
@ -674,8 +681,7 @@ int32 STimelineClip::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGe
|
|||||||
|
|
||||||
int32 NeedDrawCount = (CropEndFrameOffset - CropStartFrameOffset) * FGlobalData::DefaultTimeTickSpace;
|
int32 NeedDrawCount = (CropEndFrameOffset - CropStartFrameOffset) * FGlobalData::DefaultTimeTickSpace;
|
||||||
|
|
||||||
GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Red, FString::Printf(TEXT("CropStartFrameOffset : %d"), CropStartFrameOffset));
|
|
||||||
GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Red, FString::Printf(TEXT("CropEndFrameOffset : %d"), CropEndFrameOffset));
|
|
||||||
|
|
||||||
|
|
||||||
const int32 StartOffset = (ClipData->ResourcePropertyDataPtr->AudioSample / FGlobalData::GlobalFPS)
|
const int32 StartOffset = (ClipData->ResourcePropertyDataPtr->AudioSample / FGlobalData::GlobalFPS)
|
||||||
@ -699,9 +705,6 @@ int32 STimelineClip::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGe
|
|||||||
const int32 Interval = (CropEndDataOffset - CropStartDataOffset) / NeedDrawCount;
|
const int32 Interval = (CropEndDataOffset - CropStartDataOffset) / NeedDrawCount;
|
||||||
|
|
||||||
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Red, FString::FromInt(NeedDrawCount));
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Green, FString::FromInt(Interval));
|
|
||||||
|
|
||||||
if (CropStartFrameOffset != -1 || NeedDrawCount != -1)
|
if (CropStartFrameOffset != -1 || NeedDrawCount != -1)
|
||||||
{
|
{
|
||||||
for (int32 i = 0; i < NeedDrawCount / DownSample; i++)
|
for (int32 i = 0; i < NeedDrawCount / DownSample; i++)
|
||||||
@ -716,7 +719,7 @@ int32 STimelineClip::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGe
|
|||||||
TArray<FVector2D> NewLoc;
|
TArray<FVector2D> NewLoc;
|
||||||
NewLoc.Add(FVector2D((CropStartFrameOffset * FGlobalData::DefaultTimeTickSpace + i * DownSample) , AllottedGeometry.GetLocalSize().Y));
|
NewLoc.Add(FVector2D((CropStartFrameOffset * FGlobalData::DefaultTimeTickSpace + i * DownSample) , AllottedGeometry.GetLocalSize().Y));
|
||||||
NewLoc.Add(FVector2D((CropStartFrameOffset * FGlobalData::DefaultTimeTickSpace + i * DownSample) , Y));
|
NewLoc.Add(FVector2D((CropStartFrameOffset * FGlobalData::DefaultTimeTickSpace + i * DownSample) , Y));
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 0.0f, FColor::Red, NewLoc[0].ToString());
|
|
||||||
FSlateDrawElement::MakeLines(OutDrawElements, LayerId + 6, AllottedGeometry.ToPaintGeometry(), NewLoc, ESlateDrawEffect::None,
|
FSlateDrawElement::MakeLines(OutDrawElements, LayerId + 6, AllottedGeometry.ToPaintGeometry(), NewLoc, ESlateDrawEffect::None,
|
||||||
FColor(45, 214, 153, 255), true, DownSample * 1.2);
|
FColor(45, 214, 153, 255), true, DownSample * 1.2);
|
||||||
}
|
}
|
||||||
@ -885,7 +888,7 @@ int32 STimelineClip::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGe
|
|||||||
TArray<FSlateGradientStop> GradientStops;
|
TArray<FSlateGradientStop> GradientStops;
|
||||||
for (int32 i = 0; i < ClipData->PresetsCustomData.Cursors.Num(); i++)
|
for (int32 i = 0; i < ClipData->PresetsCustomData.Cursors.Num(); i++)
|
||||||
{
|
{
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 10.0f, FColor::Red, FString::Printf(TEXT("CursorFrameOffset %s"), *ClipData->PresetsCustomData.Cursors[i].Color.ToString()));
|
|
||||||
GradientStops.Add(FSlateGradientStop(FVector2D(ClipData->PresetsCustomData.Cursors[i].CursorFrameOffset * FGlobalData::DefaultTimeTickSpace, 0), ClipData->PresetsCustomData.Cursors[i].Color));
|
GradientStops.Add(FSlateGradientStop(FVector2D(ClipData->PresetsCustomData.Cursors[i].CursorFrameOffset * FGlobalData::DefaultTimeTickSpace, 0), ClipData->PresetsCustomData.Cursors[i].Color));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ FReply STrackBody::OnMouseButtonDown(const FGeometry& MyGeometry, const FPointer
|
|||||||
+ Y
|
+ Y
|
||||||
);
|
);
|
||||||
|
|
||||||
// GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("X:%f,Y:%f"), Y, DragDropOperator->ScrollStartPosition.Y));
|
|
||||||
DragDropOperator->DraggingWidget = TrackHead->CutTimeline;
|
DragDropOperator->DraggingWidget = TrackHead->CutTimeline;
|
||||||
return FReply::Handled().DetectDrag(SharedThis(this), EKeys::LeftMouseButton).BeginDragDrop(DragDropOperator.ToSharedRef());
|
return FReply::Handled().DetectDrag(SharedThis(this), EKeys::LeftMouseButton).BeginDragDrop(DragDropOperator.ToSharedRef());
|
||||||
}
|
}
|
||||||
|
8
Source/UpdateLog.md
Normal file
8
Source/UpdateLog.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#### 2023/9/28
|
||||||
|
- [x] 修改了时间轴缩放位置
|
||||||
|
- [x] 内化媒体文件到存档中
|
||||||
|
- [x] 存档可以在不同电脑上使用
|
||||||
|
- [x] 添加了全局选项并且在全局选项不启用时,灯效只会导出编辑器里显示的内容
|
||||||
|
- [x] 优化了视频播放逻辑
|
||||||
|
- [x] 修复了轨道对不齐
|
||||||
|
------------------------
|
Loading…
Reference in New Issue
Block a user