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:
JeffR 2022-02-22 20:12:39 -06:00
parent 6a357d8dfb
commit 01de818503
80 changed files with 590 additions and 673 deletions

View file

@ -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()