mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Ran importer on UI module to ensure guis and images are converted to latest standards
Updated all UI module controls to utilize a more standard structure with stack controls instead of the GameMenu ctrls, as well as more standardization of gamepad input handling
This commit is contained in:
parent
6a357d8dfb
commit
01de818503
80 changed files with 590 additions and 673 deletions
|
|
@ -1743,7 +1743,9 @@ function beginGUIImport()
|
|||
DirectoryHandler::createFolder(0, filePath(%destinationPath));
|
||||
}
|
||||
|
||||
if(!pathCopy(%file, %destinationPath, false))
|
||||
//Check if we need to even copy in the first place. If we do, ensure
|
||||
//the copy actually worked
|
||||
if((makeRelativePath(%file) !$= %destinationPath) && !pathCopy(%file, %destinationPath, false))
|
||||
{
|
||||
projectImporterLog("ProjectImporter::beginGUIImport() - failed to copy GUI: " @ %file @
|
||||
" to destination: " @ %destinationPath);
|
||||
|
|
@ -1779,9 +1781,9 @@ function processGUIntoAsset(%guiName, %file)
|
|||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
|
||||
%scriptFile = "";
|
||||
if(isImportingFile(%filePath @ "/" @ %fileName @ ".tscript"))
|
||||
if(isImportingFile(makeFullPath(%filePath @ "/" @ %fileName @ "." @ $TorqueScriptFileExtension)))
|
||||
{
|
||||
%scriptFile = %fileName @ ".tscript";
|
||||
%scriptFile = %fileName;
|
||||
}
|
||||
|
||||
%asset = new GUIAsset()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue