Live Config
Loading...
Searching...
No Matches
SLiveConfigNewTagDialog.h
1// Copyright (c) 2026 Nicholas Arthur
2// Licensed under the MIT License
3
4#pragma once
5
6#include "CoreMinimal.h"
7#include "Widgets/SCompoundWidget.h"
8
9DECLARE_DELEGATE_OneParam(FOnTagCreated, FName);
10
11class SLiveConfigNewTagDialog : public SCompoundWidget
12{
13public:
14 SLATE_BEGIN_ARGS(SLiveConfigNewTagDialog)
15 {}
16 SLATE_EVENT(FOnTagCreated, OnTagCreated);
17 SLATE_END_ARGS();
18
19 void Construct(const FArguments& InArgs);
20 virtual bool SupportsKeyboardFocus() const override;
21 virtual FReply OnKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent) override;
22
23 static void OpenDialog(FOnTagCreated InOnTagCreated);
24
25private:
26 FReply HandleCreate();
27 FReply OnCancelClicked();
28
29 TSharedPtr<class SEditableTextBox> TagNameTextBox;
30 FOnTagCreated OnTagCreated;
31 TWeakPtr<SWindow> WindowPtr;
32};
Definition SLiveConfigNewTagDialog.h:12