mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 23:05:38 +00:00
Fixes issue with some of the On/Off options not properly toggling in the OptionsMenu
Adds staged loading/generation of preview images for image, shape, material and terrain material types to improve navigation responsiveness Disabled lookup of bitmap info of image assets for tooltip metadata as it was causing major hangs when the images were high resolution Added function so Import new File button on AB interface will correctly prompt to find and then import in a new file Fixed theming of AssetBrowser preview card profiles to improve readability Fixed theming of ToolsGuiTextListProfile to improve readability Fixed issue where trying to import in a splat map for importing terrain data could fail due to not having full path when trying to load the bitmap's channel data Corrected Import Terrain Heightmap item in menubar to prompt creation of a new terrain asset in addition to opening the import terraindata window to avoid missed steps foc creation
This commit is contained in:
parent
496f282249
commit
70a70dfc10
12 changed files with 288 additions and 165 deletions
|
|
@ -139,6 +139,33 @@ function newAssetUpdatePath(%newPath)
|
|||
NewAssetTargetModule.text = AssetBrowser.dirHandler.getModuleFromAddress(AssetBrowser.dirHandler.currentAddress).ModuleId;
|
||||
}
|
||||
|
||||
//
|
||||
function AssetBrowser::importNewFile(%this)
|
||||
{
|
||||
%importingPath = "";
|
||||
|
||||
%dlg = new OpenFileDialog()
|
||||
{
|
||||
Filters = "(All Files (*.*)|*.*|";
|
||||
DefaultFile = "";
|
||||
ChangePath = false;
|
||||
MustExist = true;
|
||||
MultipleFiles = false;
|
||||
forceRelativePath = false;
|
||||
};
|
||||
|
||||
if ( %dlg.Execute() )
|
||||
{
|
||||
%importingPath = makeFullPath(%dlg.FileName);
|
||||
}
|
||||
|
||||
%dlg.delete();
|
||||
|
||||
AssetBrowser.onBeginDropFiles();
|
||||
AssetBrowser.onDropFile(%importingPath);
|
||||
AssetBrowser.onEndDropFiles();
|
||||
}
|
||||
|
||||
//
|
||||
function NewAssetTargetModule::onSelect(%this, %idx, %idy)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue