Skip to content

Commit d1088c1

Browse files
committed
add tooltips for the menu items
1 parent a3648d1 commit d1088c1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Assets/Integrations/Autodesk/mayalt/scripts/setupUnityUI.mel

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,25 @@ global string $kMenuName = "UnityFbxForMaya";
22
global string $kMenuDivider = "UnityFbxForMayaDivider";
33
global string $kMenuLabel = "Unity";
44
global string $kMenuInsertAfter = "exportActiveFileOptions";
5+
56
global string $kImportIconPath = "import.png";
67
global string $kExportIconPath = "export.png";
78
global string $kUnityIconPath = "unity.png";
89

10+
global string $kFamilyLabel = "The UnityFbxForMaya plugin allows you to reliably exchange and review your work between Maya and Unity.";
11+
global string $kImportLabel = "Import FBX file from Unity Project and auto-configure for exporting";
12+
global string $kExportLabel = "Export Model to Unity";
13+
14+
915
global proc setupUnityUI(){
1016
evalDeferred -lowestPriority "buildFileMenu; \
1117
$parentMenu = $gMainFileMenu; \
1218
$pluginVersion = whatsNewVersion(); \
1319
source \"unityCommands.mel\"; \
1420
menuItem -parent $parentMenu -insertAfter $kMenuInsertAfter -divider true -longDivider false -version $pluginVersion $kMenuDivider; \
15-
menuItem -parent $parentMenu -insertAfter $kMenuDivider -subMenu true -label $kMenuLabel -tearOff true -ltVersion $pluginVersion -image $kUnityIconPath $kMenuName; \
16-
menuItem -parent $kMenuName -label \"Import\" -ltVersion $pluginVersion -image $kImportIconPath -command \"unityImport\"; \
17-
menuItem -parent $kMenuName -label \"Export\" -ltVersion $pluginVersion -image $kExportIconPath -command \"unityExport\";";
21+
menuItem -parent $parentMenu -insertAfter $kMenuDivider -subMenu true -label $kMenuLabel -tearOff true -ltVersion $pluginVersion -image $kUnityIconPath -annotation $kFamilyLabel $kMenuName; \
22+
menuItem -parent $kMenuName -label \"Import\" -ltVersion $pluginVersion -image $kImportIconPath -annotation $kImportLabel -command \"unityImport\"; \
23+
menuItem -parent $kMenuName -label \"Export\" -ltVersion $pluginVersion -image $kExportIconPath -annotation $kExportLabel -command \"unityExport\";";
1824
}
1925

2026
global proc string whatsNewVersion(){

0 commit comments

Comments
 (0)