From 15ec65111e85ce8d360a20dae503d9c740ed44a6 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sun, 16 Aug 2020 12:09:36 -0500 Subject: [PATCH] Adds some additional data, namely associated file path, to some of the asset browser's previews for a few types --- .../game/tools/assetBrowser/scripts/assetTypes/image.cs | 3 ++- .../game/tools/assetBrowser/scripts/assetTypes/level.cs | 5 ++++- .../game/tools/assetBrowser/scripts/assetTypes/shape.cs | 4 +++- .../game/tools/assetBrowser/scripts/assetTypes/terrain.cs | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/image.cs b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/image.cs index 4a40bdfcd..a2f6291c2 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/image.cs +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/image.cs @@ -195,7 +195,8 @@ function AssetBrowser::buildImageAssetPreview(%this, %assetDef, %previewData) "Format: " @ getWord(%info, 0) @ "\n" @ "Height: " @ getWord(%info, 1) @ "\n" @ "Width: " @ getWord(%info, 2) @ "\n" @ - "Depth: " @ getWord(%info, 3); + "Depth: " @ getWord(%info, 3) @ "\n" @ + "Image File path: " @ %assetDef.getImagePath(); } //Renames the asset diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.cs b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.cs index f3994baf2..1e2e0e580 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.cs +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.cs @@ -146,5 +146,8 @@ function AssetBrowser::buildLevelAssetPreview(%this, %assetDef, %previewData) %previewData.assetFriendlyName = %assetDef.assetName; %previewData.assetDesc = %assetDef.description; - %previewData.tooltip = %assetDef.assetName; + %previewData.tooltip = "Asset Name: " @ %assetDef.assetName @ "\n" @ + "Asset Type: Level Asset\n" @ + "Asset Definition ID: " @ %assetDef @ "\n" @ + "Level File path: " @ %assetDef.getLevelFile(); } \ No newline at end of file diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/shape.cs b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/shape.cs index 8274b1cf7..98625bb2b 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/shape.cs +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/shape.cs @@ -253,7 +253,9 @@ function AssetBrowser::buildShapeAssetPreview(%this, %assetDef, %previewData) %previewData.assetDesc = %assetDef.description; %previewData.tooltip = "Asset Name: " @ %assetDef.assetName @ "\n" @ "Asset Type: Shape Asset\n" @ - "Asset Definition ID: " @ %assetDef; + "Asset Definition ID: " @ %assetDef @ "\n" @ + "Shape File path: " @ %assetDef.getShapeFile(); + } function AssetBrowser::onShapeAssetEditorDropped(%this, %assetDef, %position) diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrain.cs b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrain.cs index d980943c1..0492d3663 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrain.cs +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrain.cs @@ -122,7 +122,9 @@ function AssetBrowser::buildTerrainAssetPreview(%this, %assetDef, %previewData) %previewData.assetFriendlyName = %assetDef.gameObjectName; %previewData.assetDesc = %assetDef.description; - %previewData.tooltip = %assetDef.gameObjectName; + %previewData.tooltip = "Asset Name: " @ %assetDef.assetName @ "\n" @ + "Asset Type: Terrain Asset\n" @ + "Asset Definition ID: " @ %assetDef; } function GuiInspectorTypeTerrainAssetPtr::onClick( %this, %fieldName )