mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-06 07:38:46 +00:00
CogEngine: Fix selection widget not updating the selection after clicking on the actor name
This commit is contained in:
@@ -369,7 +369,18 @@ void FCogEngineWindow_Selection::RenderMainMenuWidget(int32 SubWidgetIndex, floa
|
|||||||
{
|
{
|
||||||
ImGui::SetNextItemWidth(Width);
|
ImGui::SetNextItemWidth(Width);
|
||||||
AActor* NewSelection = nullptr;
|
AActor* NewSelection = nullptr;
|
||||||
FCogWindowWidgets::MenuActorsCombo("MenuActorSelection", NewSelection, *GetWorld(), ActorClasses, Config->SelectedClassIndex, &Filter, GetLocalPlayerPawn(), [this](AActor& Actor) { RenderActorContextMenu(Actor); });
|
if (FCogWindowWidgets::MenuActorsCombo(
|
||||||
|
"MenuActorSelection",
|
||||||
|
NewSelection,
|
||||||
|
*GetWorld(),
|
||||||
|
ActorClasses,
|
||||||
|
Config->SelectedClassIndex,
|
||||||
|
&Filter,
|
||||||
|
GetLocalPlayerPawn(),
|
||||||
|
[this](AActor& Actor) { RenderActorContextMenu(Actor); }))
|
||||||
|
{
|
||||||
|
SetGlobalSelection(NewSelection);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (SubWidgetIndex == 2)
|
else if (SubWidgetIndex == 2)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user