点阵位置和修复修改组名不显示
This commit is contained in:
parent
dc6765c015
commit
60b329d718
@ -33,7 +33,6 @@ public:
|
|||||||
};
|
};
|
||||||
static FString MainSaveFullPath()
|
static FString MainSaveFullPath()
|
||||||
{
|
{
|
||||||
GEngine->AddOnScreenDebugMessage(-1, 10.0f, FColor::White, FGlobalData::BasePath);
|
|
||||||
return FPaths::Combine(FGlobalData::BasePath, FGlobalData::CurrentProjectName, FGlobalData::CurrentProjectName + TEXT(".bin"));
|
return FPaths::Combine(FGlobalData::BasePath, FGlobalData::CurrentProjectName, FGlobalData::CurrentProjectName + TEXT(".bin"));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -334,11 +334,19 @@ void SCutTimeline::SetAutoPlay(bool bStart)
|
|||||||
|
|
||||||
void SCutTimeline::OnGroupNameEdited(FString NewText, FString OldText)
|
void SCutTimeline::OnGroupNameEdited(FString NewText, FString OldText)
|
||||||
{
|
{
|
||||||
|
for (FTrackGroup& TrackGroup : TrackGroups)
|
||||||
|
{
|
||||||
|
if (TrackGroup.GroupName == OldText)
|
||||||
|
{
|
||||||
|
TrackGroup.GroupName = NewText;
|
||||||
|
}
|
||||||
|
}
|
||||||
for (FSingleTrackGroupInstance& SingleTrackGroupInstance : TrackGroupInstances)
|
for (FSingleTrackGroupInstance& SingleTrackGroupInstance : TrackGroupInstances)
|
||||||
{
|
{
|
||||||
if (SingleTrackGroupInstance.GroupName == OldText)
|
if (SingleTrackGroupInstance.GroupName == OldText)
|
||||||
{
|
{
|
||||||
SingleTrackGroupInstance.GroupName = NewText;
|
SingleTrackGroupInstance.GroupName = NewText;
|
||||||
|
|
||||||
if (TSharedPtr<STrackHead> Head = StaticCastSharedPtr<STrackHead>(SingleTrackGroupInstance.Head))
|
if (TSharedPtr<STrackHead> Head = StaticCastSharedPtr<STrackHead>(SingleTrackGroupInstance.Head))
|
||||||
{
|
{
|
||||||
if (Head->TrackData.TrackType == ETrackType::PlayerTrack)
|
if (Head->TrackData.TrackType == ETrackType::PlayerTrack)
|
||||||
@ -347,7 +355,9 @@ void SCutTimeline::OnGroupNameEdited(FString NewText, FString OldText)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
RenderGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SCutTimeline::RenderGroup()
|
void SCutTimeline::RenderGroup()
|
||||||
|
@ -76,7 +76,7 @@ int32 SLightArrayPanel::OnPaint(const FPaintArgs& Args, const FGeometry& Allotte
|
|||||||
FSlateDrawElement::MakeBox(
|
FSlateDrawElement::MakeBox(
|
||||||
OutDrawElements,
|
OutDrawElements,
|
||||||
LayerId,
|
LayerId,
|
||||||
AllottedGeometry.ToPaintGeometry(SingleLocalSize, FSlateLayoutTransform(FVector2D(i * SingleLocalSize.X, j * SingleLocalSize.Y))),
|
LightGrid->GetPaintSpaceGeometry().ToPaintGeometry(SingleLocalSize, FSlateLayoutTransform(FVector2D(i * SingleLocalSize.X, j * SingleLocalSize.Y))),
|
||||||
&Brush,
|
&Brush,
|
||||||
ESlateDrawEffect::None,
|
ESlateDrawEffect::None,
|
||||||
LightGridColors[j * FGlobalData::LightArrayX + i]
|
LightGridColors[j * FGlobalData::LightArrayX + i]
|
||||||
|
@ -113,6 +113,18 @@ void SStatePanel::Construct(const FArguments& InArgs)
|
|||||||
SNew(SBox)
|
SNew(SBox)
|
||||||
.WidthOverride(100)
|
.WidthOverride(100)
|
||||||
.HeightOverride(100)
|
.HeightOverride(100)
|
||||||
|
[
|
||||||
|
SAssignNew(SpotLight, SImage)
|
||||||
|
.Image(FUtils::GetBrushFromImage(FUtils::GetResourcesPath(TEXT("SpotLight.png")), FVector2D(0, 0)))
|
||||||
|
]
|
||||||
|
]
|
||||||
|
+ SOverlay::Slot()
|
||||||
|
.HAlign(HAlign_Right)
|
||||||
|
.VAlign(VAlign_Top)
|
||||||
|
[
|
||||||
|
SNew(SBox)
|
||||||
|
.WidthOverride(100)
|
||||||
|
.HeightOverride(60)
|
||||||
[
|
[
|
||||||
SNew(SButton)
|
SNew(SButton)
|
||||||
.OnClicked_Lambda([this]()
|
.OnClicked_Lambda([this]()
|
||||||
@ -121,7 +133,6 @@ void SStatePanel::Construct(const FArguments& InArgs)
|
|||||||
bIsVideo = !bIsVideo;
|
bIsVideo = !bIsVideo;
|
||||||
return FReply::Handled();
|
return FReply::Handled();
|
||||||
})
|
})
|
||||||
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ public:
|
|||||||
TSharedPtr<SWidgetSwitcher> ShowSwitcher;
|
TSharedPtr<SWidgetSwitcher> ShowSwitcher;
|
||||||
TSharedPtr<SBox> MainShow;
|
TSharedPtr<SBox> MainShow;
|
||||||
TSharedPtr<SImage> Projector;
|
TSharedPtr<SImage> Projector;
|
||||||
|
TSharedPtr<SImage> SpotLight;
|
||||||
|
|
||||||
bool bIsVideo = true;
|
bool bIsVideo = false;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user