|
|
|
|
@ -23,7 +23,7 @@ namespace AzToolsFramework::ViewportUi
|
|
|
|
|
using TextFieldId = IdType<struct TextFieldIdType>;
|
|
|
|
|
|
|
|
|
|
//! Callback function for viewport UI back button.
|
|
|
|
|
using ViewportUIBackButtonCallback = AZStd::function<void()>;
|
|
|
|
|
using ViewportUiBackButtonCallback = AZStd::function<void()>;
|
|
|
|
|
|
|
|
|
|
inline const ViewportUiElementId InvalidViewportUiElementId = ViewportUiElementId(0);
|
|
|
|
|
inline const ButtonId InvalidButtonId = ButtonId(0);
|
|
|
|
|
@ -98,9 +98,9 @@ namespace AzToolsFramework::ViewportUi
|
|
|
|
|
virtual void RemoveTextField(TextFieldId textFieldId) = 0;
|
|
|
|
|
//! Sets the visibility of the text field.
|
|
|
|
|
virtual void SetTextFieldVisible(TextFieldId textFieldId, bool visible) = 0;
|
|
|
|
|
//! Create the highlight border for editor modes with optional back button to exit the given editor mode.
|
|
|
|
|
virtual void CreateViewportBorder(const AZStd::string& borderTitle, AZStd::optional<ViewportUIBackButtonCallback> backButtonCallback) = 0;
|
|
|
|
|
//! Remove the highlight border for editor modes.
|
|
|
|
|
//! Create the highlight border with optional back button to exit the given editor mode.
|
|
|
|
|
virtual void CreateViewportBorder(const AZStd::string& borderTitle, AZStd::optional<ViewportUiBackButtonCallback> backButtonCallback) = 0;
|
|
|
|
|
//! Remove the highlight border.
|
|
|
|
|
virtual void RemoveViewportBorder() = 0;
|
|
|
|
|
//! Invoke a button press on a cluster.
|
|
|
|
|
virtual void PressButton(ClusterId clusterId, ButtonId buttonId) = 0;
|
|
|
|
|
|