Manages context menus for the asset browser.
More...
#include <ContextMenu.h>
Manages context menus for the asset browser.
◆ ShowAssetMenu()
Show context menu for a specific asset item.
- Parameters
-
item | The asset item |
isGlobal | Whether this is global assets |
- Returns
- Context menu result
◆ ShowDeleteConfirmation()
bool Editor::Assets::ContextMenu::ShowDeleteConfirmation |
( |
const std::string & |
itemName, |
|
|
bool |
isDirectory |
|
) |
| |
|
static |
Show delete confirmation dialog.
- Parameters
-
itemName | Name of the item to delete |
isDirectory | Whether it's a directory |
- Returns
- True if item should be deleted
◆ ShowEmptySpaceMenu()
ContextMenuResult Editor::Assets::ContextMenu::ShowEmptySpaceMenu |
( |
const std::filesystem::path & |
currentPath, |
|
|
bool |
isGlobal |
|
) |
| |
|
static |
Show context menu for empty space in the browser.
- Parameters
-
currentPath | Current directory path |
isGlobal | Whether this is global assets |
- Returns
- Context menu result
◆ ShowFolderCreationDialog()
bool Editor::Assets::ContextMenu::ShowFolderCreationDialog |
( |
std::string & |
folderName | ) |
|
|
static |
Show folder creation dialog.
- Parameters
-
folderName | Output parameter for folder name |
- Returns
- True if folder should be created
◆ ShowRenameDialog()
bool Editor::Assets::ContextMenu::ShowRenameDialog |
( |
const std::string & |
currentName, |
|
|
std::string & |
newName |
|
) |
| |
|
static |
Show rename dialog.
- Parameters
-
currentName | Current name of the item |
newName | Output parameter for new name |
- Returns
- True if item should be renamed
◆ ShowScriptCreationDialog()
bool Editor::Assets::ContextMenu::ShowScriptCreationDialog |
( |
std::string & |
scriptName, |
|
|
std::string & |
scriptType |
|
) |
| |
|
static |
Show script creation submenu.
- Parameters
-
scriptName | Output parameter for script name |
scriptType | Output parameter for script type |
- Returns
- True if script should be created
The documentation for this class was generated from the following files: