mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Adds handling for drag-and-drop import of files even if asset browser is not open. If world or gui editor are the active controls, then it will injest the incoming files and prompt what their destination module and path will be via a new popup window. After clicking OK, import continues into that destination.
Cleaned up commented lines from drag-and-drop functions. Fixed issue where material icon on buttons in the object creator windows wouldn't display. Fixed issue where it wasn't correctly binding cloud textures for BasicClouds object or ripple/foam/depth textures for water objects when newly created Fixed issue where when double-clicking on a datablock type in the datablock editor, wasn't correctly going through the module selection process, making an invalid destination. Added handling for Trigger object creation via TriggerData class Standardized double-click handling of datablock entries in AB to respect double click action mode, and properly either open the datablock editor to the given datablock, or spawn it. Made Create New Datablock prompt window indicate the destination module to be clearer where it's going if force-prompt of module setting is off.
This commit is contained in:
parent
a30f64506f
commit
5892ff7428
15 changed files with 469 additions and 90 deletions
|
|
@ -95,7 +95,7 @@ function AssetBrowser_addModuleWindow::CreateNewModule(%this)
|
|||
|
||||
//force a refresh of our modules list
|
||||
ModuleDatabase.ignoreLoadedGroups(true);
|
||||
ModuleDatabase.scanModules();
|
||||
ModuleDatabase.registerModule(%moduleFilePath, %newModuleName @ ".module");
|
||||
%success = ModuleDatabase.loadExplicit(%newModuleName, 1);
|
||||
ModuleDatabase.ignoreLoadedGroups(false);
|
||||
|
||||
|
|
@ -123,8 +123,9 @@ function AssetBrowserModuleList::refresh(%this)
|
|||
%count = getWordCount(%moduleList);
|
||||
for(%i=0; %i < %count; %i++)
|
||||
{
|
||||
%moduleName = getWord(%moduleList, %i);
|
||||
%this.add(%moduleName.ModuleId, %i);
|
||||
%moduleDef = getWord(%moduleList, %i);
|
||||
%moduleName = %moduleDef.ModuleId;
|
||||
%this.add(%moduleName, %i);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue