mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Merge remote-tracking branch 'devhead/Preview4_0' into tsneo
# Conflicts: # Templates/BaseGame/game/data/ui/guis/loadingGui.gui # Templates/BaseGame/game/data/ui/guis/mainMenu.gui # Templates/BaseGame/game/tools/MainEditor/guis/MainEditorWindow.gui # Templates/BaseGame/game/tools/assetBrowser/guis/assetPreviewButtonsTemplate.gui # Templates/BaseGame/game/tools/forestEditor/brushes.tscript
This commit is contained in:
commit
717c7acca9
2266 changed files with 48780 additions and 26034 deletions
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="animationIcon_image"
|
||||
imageFile="@assetFile=animationIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB |
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="clientScriptIcon_image"
|
||||
imageFile="@assetFile=clientScriptIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="componentIcon_image"
|
||||
imageFile="@assetFile=componentIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="cppIcon_image"
|
||||
imageFile="@assetFile=cppIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="datablockIcon_image"
|
||||
imageFile="@assetFile=datablockIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="folderIcon_image"
|
||||
imageFile="@assetFile=folderIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="gameObjectIcon_image"
|
||||
imageFile="@assetFile=gameObjectIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="genericAssetIcon_image"
|
||||
imageFile="@assetFile=genericAssetIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="guiIcon_image"
|
||||
imageFile="@assetFile=guiIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="levelIcon_image"
|
||||
imageFile="@assetFile=levelIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="looseFileIcon_image"
|
||||
imageFile="@assetFile=looseFileIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="materialIcon_image"
|
||||
imageFile="@assetFile=materialIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="postEffectIcon_image"
|
||||
imageFile="@assetFile=postEffectIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="scriptIcon_image"
|
||||
imageFile="@assetFile=scriptIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="serverScriptIcon_image"
|
||||
imageFile="@assetFile=serverScriptIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="soundIcon_image"
|
||||
imageFile="@assetFile=soundIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="stateMachineIcon_image"
|
||||
imageFile="@assetFile=stateMachineIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="terrainMaterialIcon_image"
|
||||
imageFile="@assetFile=terrainMaterialIcon.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -1,156 +1,451 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<AssetImportSettings>
|
||||
<Group name="DefaultImportConfig">
|
||||
<Group name="Animations">
|
||||
<Setting name="animFPS">2</Setting>
|
||||
<Setting name="animTiming">Seconds</Setting>
|
||||
<Setting name="ImportAnimations">1</Setting>
|
||||
<Setting name="SeparateAnimations">1</Setting>
|
||||
<Group
|
||||
name="DefaultImportConfig">
|
||||
<Group
|
||||
name="Animations">
|
||||
<Setting
|
||||
name="animFPS">2</Setting>
|
||||
<Setting
|
||||
name="animTiming">Seconds</Setting>
|
||||
<Setting
|
||||
name="ImportAnimations">1</Setting>
|
||||
<Setting
|
||||
name="SeparateAnimations">1</Setting>
|
||||
</Group>
|
||||
<Group name="Collision">
|
||||
<Setting name="CollisionMeshPrefix">Col</Setting>
|
||||
<Setting name="GenCollisionType">CollisionMesh</Setting>
|
||||
<Setting name="GenerateCollisions">1</Setting>
|
||||
<Setting name="GenerateLOSCollisions">1</Setting>
|
||||
<Setting name="GenLOSCollisionType">CollisionMesh</Setting>
|
||||
<Setting name="LOSCollisionMeshPrefix">LOS</Setting>
|
||||
<Group
|
||||
name="Collision">
|
||||
<Setting
|
||||
name="CollisionMeshPrefix">Col</Setting>
|
||||
<Setting
|
||||
name="GenCollisionType">CollisionMesh</Setting>
|
||||
<Setting
|
||||
name="GenerateCollisions">1</Setting>
|
||||
<Setting
|
||||
name="GenerateLOSCollisions">1</Setting>
|
||||
<Setting
|
||||
name="GenLOSCollisionType">CollisionMesh</Setting>
|
||||
<Setting
|
||||
name="LOSCollisionMeshPrefix">LOS</Setting>
|
||||
</Group>
|
||||
<Group name="General">
|
||||
<Setting name="AutomaticallyPromptMissingFiles">0</Setting>
|
||||
<Setting name="DuplicatAutoResolution">AutoPrune</Setting>
|
||||
<Setting name="PreventImportWithErrors">1</Setting>
|
||||
<Setting name="WarningsAsErrors">0</Setting>
|
||||
<Group
|
||||
name="General">
|
||||
<Setting
|
||||
name="AutomaticallyPromptMissingFiles">0</Setting>
|
||||
<Setting
|
||||
name="DuplicatAutoResolution">AutoPrune</Setting>
|
||||
<Setting
|
||||
name="PreventImportWithErrors">1</Setting>
|
||||
<Setting
|
||||
name="WarningsAsErrors">0</Setting>
|
||||
<Setting
|
||||
name="AddDirectoryPrefixToAssetName">0</Setting>
|
||||
</Group>
|
||||
<Group name="Images">
|
||||
<Setting name="AddedImageSuffix">_image</Setting>
|
||||
<Setting name="AlwaysAddImageSuffix">1</Setting>
|
||||
<Setting name="AOTypeSuffixes">_AO,_AMBIENT,_AMBIENTOCCLUSION</Setting>
|
||||
<Setting name="CompositeTypeSuffixes">_COMP,_COMPOSITE,_PBR,-COMP,-COMPOSITE,-PBR,_ORM,-ORM</Setting>
|
||||
<Setting name="Compressed">1</Setting>
|
||||
<Setting name="DiffuseTypeSuffixes">_ALBEDO,_DIFFUSE,_ALB,_DIF,_COLOR,_COL</Setting>
|
||||
<Setting name="GenerateMaterialOnImport">1</Setting>
|
||||
<Setting name="ImageType">N/A</Setting>
|
||||
<Setting name="ImportImages">1</Setting>
|
||||
<Setting name="IsHDR">0</Setting>
|
||||
<Setting name="MetalnessTypeSuffixes">_METAL,_MET,_METALNESS,_METALLIC</Setting>
|
||||
<Setting name="NormalTypeSuffixes">_NORMAL,_NORM</Setting>
|
||||
<Setting name="RoughnessTypeSuffixes">_ROUGH,_ROUGHNESS</Setting>
|
||||
<Setting name="Scaling">1.0</Setting>
|
||||
<Setting name="SmoothnessTypeSuffixes">_SMOOTH,_SMOOTHNESS</Setting>
|
||||
<Setting name="TextureFilteringMode">Bilinear</Setting>
|
||||
<Setting name="UseMips">1</Setting>
|
||||
<Group
|
||||
name="Images">
|
||||
<Setting
|
||||
name="AddedImageSuffix">_image</Setting>
|
||||
<Setting
|
||||
name="AlwaysAddImageSuffix">1</Setting>
|
||||
<Setting
|
||||
name="AOTypeSuffixes">_AO,_AMBIENT,_AMBIENTOCCLUSION</Setting>
|
||||
<Setting
|
||||
name="CompositeTypeSuffixes">_COMP,_COMPOSITE,_PBR,-COMP,-COMPOSITE,-PBR,_ORM,-ORM</Setting>
|
||||
<Setting
|
||||
name="Compressed">1</Setting>
|
||||
<Setting
|
||||
name="DiffuseTypeSuffixes">_ALBEDO,_DIFFUSE,_ALB,_DIF,_COLOR,_COL</Setting>
|
||||
<Setting
|
||||
name="GenerateMaterialOnImport">0</Setting>
|
||||
<Setting
|
||||
name="ImageType">N/A</Setting>
|
||||
<Setting
|
||||
name="ImportImages">1</Setting>
|
||||
<Setting
|
||||
name="IsHDR">0</Setting>
|
||||
<Setting
|
||||
name="MetalnessTypeSuffixes">_METAL,_MET,_METALNESS,_METALLIC</Setting>
|
||||
<Setting
|
||||
name="NormalTypeSuffixes">_NORMAL,_NORM</Setting>
|
||||
<Setting
|
||||
name="RoughnessTypeSuffixes">_ROUGH,_ROUGHNESS</Setting>
|
||||
<Setting
|
||||
name="Scaling">1.0</Setting>
|
||||
<Setting
|
||||
name="SmoothnessTypeSuffixes">_SMOOTH,_SMOOTHNESS</Setting>
|
||||
<Setting
|
||||
name="TextureFilteringMode">Bilinear</Setting>
|
||||
<Setting
|
||||
name="UseMips">1</Setting>
|
||||
</Group>
|
||||
<Group name="Materials">
|
||||
<Setting name="AddedMaterialSuffix">_mat</Setting>
|
||||
<Setting name="AlwaysAddMaterialSuffix">0</Setting>
|
||||
<Setting name="CreateComposites">1</Setting>
|
||||
<Setting name="ImportMaterials">1</Setting>
|
||||
<Setting name="PopulateMaterialMaps">1</Setting>
|
||||
<Setting name="UseDiffuseSuffixOnOriginImage">1</Setting>
|
||||
<Setting name="UseExistingMaterials">1</Setting>
|
||||
<Group
|
||||
name="Materials">
|
||||
<Setting
|
||||
name="AddedMaterialSuffix">_mat</Setting>
|
||||
<Setting
|
||||
name="AlwaysAddMaterialSuffix">0</Setting>
|
||||
<Setting
|
||||
name="CreateComposites">1</Setting>
|
||||
<Setting
|
||||
name="ImportMaterials">1</Setting>
|
||||
<Setting
|
||||
name="PopulateMaterialMaps">1</Setting>
|
||||
<Setting
|
||||
name="UseDiffuseSuffixOnOriginImage">1</Setting>
|
||||
<Setting
|
||||
name="UseExistingMaterials">1</Setting>
|
||||
</Group>
|
||||
<Group name="Meshes">
|
||||
<Setting name="AddedShapeSuffix">_shape</Setting>
|
||||
<Setting name="AdjustCenter">0</Setting>
|
||||
<Setting name="AdjustFloor">0</Setting>
|
||||
<Setting name="AlwaysAddShapeSuffix">0</Setting>
|
||||
<Setting name="calcTangentSpace">0</Setting>
|
||||
<Setting name="CollapseSubmeshes">0</Setting>
|
||||
<Setting name="convertLeftHanded">0</Setting>
|
||||
<Setting name="DoScaleOverride">0</Setting>
|
||||
<Setting name="DoUpAxisOverride">0</Setting>
|
||||
<Setting name="findInstances">0</Setting>
|
||||
<Setting name="flipUVCoords">0</Setting>
|
||||
<Setting name="genUVCoords">0</Setting>
|
||||
<Setting name="IgnoreNodeScale">0</Setting>
|
||||
<Setting name="ImportMesh">1</Setting>
|
||||
<Setting name="invertNormals">0</Setting>
|
||||
<Setting name="JoinIdenticalVerts">0</Setting>
|
||||
<Setting name="limitBoneWeights">0</Setting>
|
||||
<Setting name="LODType">TrailingNumber</Setting>
|
||||
<Setting name="removeRedundantMats">0</Setting>
|
||||
<Setting name="reverseWindingOrder">0</Setting>
|
||||
<Setting name="ScaleOverride">1</Setting>
|
||||
<Setting name="TransformUVs">0</Setting>
|
||||
<Setting name="UpAxisOverride">Z_AXIS</Setting>
|
||||
<Group
|
||||
name="Meshes">
|
||||
<Setting
|
||||
name="AddedShapeSuffix">_shape</Setting>
|
||||
<Setting
|
||||
name="AdjustCenter">0</Setting>
|
||||
<Setting
|
||||
name="AdjustFloor">0</Setting>
|
||||
<Setting
|
||||
name="AlwaysAddShapeSuffix">0</Setting>
|
||||
<Setting
|
||||
name="calcTangentSpace">0</Setting>
|
||||
<Setting
|
||||
name="CollapseSubmeshes">0</Setting>
|
||||
<Setting
|
||||
name="convertLeftHanded">0</Setting>
|
||||
<Setting
|
||||
name="DoScaleOverride">0</Setting>
|
||||
<Setting
|
||||
name="DoUpAxisOverride">0</Setting>
|
||||
<Setting
|
||||
name="findInstances">0</Setting>
|
||||
<Setting
|
||||
name="flipUVCoords">0</Setting>
|
||||
<Setting
|
||||
name="genUVCoords">0</Setting>
|
||||
<Setting
|
||||
name="IgnoreNodeScale">0</Setting>
|
||||
<Setting
|
||||
name="ImportMesh">1</Setting>
|
||||
<Setting
|
||||
name="invertNormals">0</Setting>
|
||||
<Setting
|
||||
name="JoinIdenticalVerts">0</Setting>
|
||||
<Setting
|
||||
name="limitBoneWeights">0</Setting>
|
||||
<Setting
|
||||
name="LODType">TrailingNumber</Setting>
|
||||
<Setting
|
||||
name="removeRedundantMats">0</Setting>
|
||||
<Setting
|
||||
name="reverseWindingOrder">0</Setting>
|
||||
<Setting
|
||||
name="ScaleOverride">1</Setting>
|
||||
<Setting
|
||||
name="TransformUVs">0</Setting>
|
||||
<Setting
|
||||
name="UpAxisOverride">Z_AXIS</Setting>
|
||||
</Group>
|
||||
<Group name="Sounds">
|
||||
<Setting name="Compressed">0</Setting>
|
||||
<Setting name="PitchAdjust">1.0</Setting>
|
||||
<Setting name="VolumeAdjust">1.0</Setting>
|
||||
<Group
|
||||
name="Sounds">
|
||||
<Setting
|
||||
name="Compressed">0</Setting>
|
||||
<Setting
|
||||
name="PitchAdjust">1.0</Setting>
|
||||
<Setting
|
||||
name="VolumeAdjust">1.0</Setting>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group name="NewTest">
|
||||
<Group name="Animations">
|
||||
<Setting name="animFPS">2</Setting>
|
||||
<Setting name="animTiming">Seconds</Setting>
|
||||
<Setting name="ImportAnimations">1</Setting>
|
||||
<Setting name="SeparateAnimations">1</Setting>
|
||||
<Group
|
||||
name="LegacyProjectImport">
|
||||
<Group
|
||||
name="Animations">
|
||||
<Setting
|
||||
name="animFPS">2</Setting>
|
||||
<Setting
|
||||
name="animTiming">Seconds</Setting>
|
||||
<Setting
|
||||
name="ImportAnimations">1</Setting>
|
||||
<Setting
|
||||
name="SeparateAnimations">1</Setting>
|
||||
</Group>
|
||||
<Group name="Collision">
|
||||
<Setting name="CollisionMeshPrefix">Col</Setting>
|
||||
<Setting name="GenCollisionType">CollisionMesh</Setting>
|
||||
<Setting name="GenerateCollisions">1</Setting>
|
||||
<Setting name="GenerateLOSCollisions">1</Setting>
|
||||
<Setting name="GenLOSCollisionType">CollisionMesh</Setting>
|
||||
<Setting name="LOSCollisionMeshPrefix">LOS</Setting>
|
||||
<Group
|
||||
name="Collision">
|
||||
<Setting
|
||||
name="CollisionMeshPrefix">Col</Setting>
|
||||
<Setting
|
||||
name="GenCollisionType">CollisionMesh</Setting>
|
||||
<Setting
|
||||
name="GenerateCollisions">1</Setting>
|
||||
<Setting
|
||||
name="GenerateLOSCollisions">1</Setting>
|
||||
<Setting
|
||||
name="GenLOSCollisionType">CollisionMesh</Setting>
|
||||
<Setting
|
||||
name="LOSCollisionMeshPrefix">LOS</Setting>
|
||||
</Group>
|
||||
<Group name="General">
|
||||
<Setting name="AutomaticallyPromptMissingFiles">0</Setting>
|
||||
<Setting name="DuplicatAutoResolution">AutoPrune</Setting>
|
||||
<Setting name="PreventImportWithErrors">1</Setting>
|
||||
<Setting name="WarningsAsErrors">0</Setting>
|
||||
<Group
|
||||
name="General">
|
||||
<Setting
|
||||
name="AutomaticallyPromptMissingFiles">0</Setting>
|
||||
<Setting
|
||||
name="DuplicateAutoResolution">FolderPrefix</Setting>
|
||||
<Setting
|
||||
name="PreventImportWithErrors">1</Setting>
|
||||
<Setting
|
||||
name="WarningsAsErrors">0</Setting>
|
||||
<Setting
|
||||
name="AddDirectoryPrefixToAssetName">1</Setting>
|
||||
</Group>
|
||||
<Group name="Images">
|
||||
<Setting name="AOTypeSuffixes">_AO,_AMBIENT,_AMBIENTOCCLUSION</Setting>
|
||||
<Setting name="Compressed">1</Setting>
|
||||
<Setting name="DiffuseTypeSuffixes">_ALBEDO,_DIFFUSE,_ALB,_DIF,_COLOR,_COL</Setting>
|
||||
<Setting name="GenerateMaterialOnImport">1</Setting>
|
||||
<Setting name="ImageType">N/A</Setting>
|
||||
<Setting name="IsHDR">0</Setting>
|
||||
<Setting name="MetalnessTypeSuffixes">_METAL,_MET,_METALNESS,_METALLIC</Setting>
|
||||
<Setting name="NormalTypeSuffixes">_NORMAL,_NORM</Setting>
|
||||
<Setting name="PBRTypeSuffixes">_COMP,_COMPOSITE,_PBR,-COMP,-COMPOSITE,-PBR,_ORM,-ORM</Setting>
|
||||
<Setting name="RoughnessTypeSuffixes">_ROUGH,_ROUGHNESS</Setting>
|
||||
<Setting name="Scaling">1.0</Setting>
|
||||
<Setting name="SmoothnessTypeSuffixes">_SMOOTH,_SMOOTHNESS</Setting>
|
||||
<Setting name="TextureFilteringMode">Bilinear</Setting>
|
||||
<Setting name="UseMips">1</Setting>
|
||||
<Group
|
||||
name="Images">
|
||||
<Setting
|
||||
name="AddedImageSuffix">_image</Setting>
|
||||
<Setting
|
||||
name="AlwaysAddImageSuffix">1</Setting>
|
||||
<Setting
|
||||
name="AOTypeSuffixes">_AO,_AMBIENT,_AMBIENTOCCLUSION</Setting>
|
||||
<Setting
|
||||
name="CompositeTypeSuffixes">_COMP,_COMPOSITE</Setting>
|
||||
<Setting
|
||||
name="Compressed">1</Setting>
|
||||
<Setting
|
||||
name="DiffuseTypeSuffixes">_ALBEDO,_DIFFUSE,_ALB,_DIF,_COLOR,_COL</Setting>
|
||||
<Setting
|
||||
name="GenerateMaterialOnImport">0</Setting>
|
||||
<Setting
|
||||
name="ImageType">N/A</Setting>
|
||||
<Setting
|
||||
name="ImportImages">1</Setting>
|
||||
<Setting
|
||||
name="IsHDR">0</Setting>
|
||||
<Setting
|
||||
name="MetalnessTypeSuffixes">_METAL,_MET,_METALNESS,_METALLIC</Setting>
|
||||
<Setting
|
||||
name="NormalTypeSuffixes">_NORMAL,_NORM</Setting>
|
||||
<Setting
|
||||
name="RoughnessTypeSuffixes">_ROUGH,_ROUGHNESS</Setting>
|
||||
<Setting
|
||||
name="Scaling">1.0</Setting>
|
||||
<Setting
|
||||
name="SmoothnessTypeSuffixes">_SMOOTH,_SMOOTHNESS</Setting>
|
||||
<Setting
|
||||
name="TextureFilteringMode">Bilinear</Setting>
|
||||
<Setting
|
||||
name="UseMips">1</Setting>
|
||||
</Group>
|
||||
<Group name="Materials">
|
||||
<Setting name="CreateComposites">1</Setting>
|
||||
<Setting name="ImportMaterials">1</Setting>
|
||||
<Setting name="PopulateMaterialMaps">1</Setting>
|
||||
<Setting name="UseDiffuseSuffixOnOriginImage">1</Setting>
|
||||
<Setting name="UseExistingMaterials">1</Setting>
|
||||
<Group
|
||||
name="Materials">
|
||||
<Setting
|
||||
name="AddedMaterialSuffix">_mat</Setting>
|
||||
<Setting
|
||||
name="AlwaysAddMaterialSuffix">1</Setting>
|
||||
<Setting
|
||||
name="CreateComposites">1</Setting>
|
||||
<Setting
|
||||
name="ImportMaterials">1</Setting>
|
||||
<Setting
|
||||
name="PopulateMaterialMaps">1</Setting>
|
||||
<Setting
|
||||
name="UseDiffuseSuffixOnOriginImage">1</Setting>
|
||||
<Setting
|
||||
name="UseExistingMaterials">1</Setting>
|
||||
</Group>
|
||||
<Group name="Meshes">
|
||||
<Setting name="AdjustCenter">0</Setting>
|
||||
<Setting name="AdjustFloor">0</Setting>
|
||||
<Setting name="calcTangentSpace">0</Setting>
|
||||
<Setting name="CollapseSubmeshes">0</Setting>
|
||||
<Setting name="convertLeftHanded">0</Setting>
|
||||
<Setting name="DoScaleOverride">0</Setting>
|
||||
<Setting name="DoUpAxisOverride">0</Setting>
|
||||
<Setting name="findInstances">0</Setting>
|
||||
<Setting name="flipUVCoords">0</Setting>
|
||||
<Setting name="genUVCoords">0</Setting>
|
||||
<Setting name="IgnoreNodeScale">0</Setting>
|
||||
<Setting name="ImportMesh">1</Setting>
|
||||
<Setting name="invertNormals">0</Setting>
|
||||
<Setting name="JoinIdenticalVerts">0</Setting>
|
||||
<Setting name="limitBoneWeights">0</Setting>
|
||||
<Setting name="LODType">TrailingNumber</Setting>
|
||||
<Setting name="removeRedundantMats">0</Setting>
|
||||
<Setting name="reverseWindingOrder">0</Setting>
|
||||
<Setting name="ScaleOverride">1</Setting>
|
||||
<Setting name="TransformUVs">0</Setting>
|
||||
<Setting name="UpAxisOverride">Z_AXIS</Setting>
|
||||
<Group
|
||||
name="Meshes">
|
||||
<Setting
|
||||
name="AddedShapeSuffix">_shape</Setting>
|
||||
<Setting
|
||||
name="AdjustCenter">0</Setting>
|
||||
<Setting
|
||||
name="AdjustFloor">0</Setting>
|
||||
<Setting
|
||||
name="AlwaysAddShapeSuffix">0</Setting>
|
||||
<Setting
|
||||
name="calcTangentSpace">0</Setting>
|
||||
<Setting
|
||||
name="CollapseSubmeshes">0</Setting>
|
||||
<Setting
|
||||
name="convertLeftHanded">0</Setting>
|
||||
<Setting
|
||||
name="DoScaleOverride">0</Setting>
|
||||
<Setting
|
||||
name="DoUpAxisOverride">0</Setting>
|
||||
<Setting
|
||||
name="findInstances">0</Setting>
|
||||
<Setting
|
||||
name="flipUVCoords">0</Setting>
|
||||
<Setting
|
||||
name="genUVCoords">0</Setting>
|
||||
<Setting
|
||||
name="IgnoreNodeScale">0</Setting>
|
||||
<Setting
|
||||
name="ImportMesh">1</Setting>
|
||||
<Setting
|
||||
name="invertNormals">0</Setting>
|
||||
<Setting
|
||||
name="JoinIdenticalVerts">0</Setting>
|
||||
<Setting
|
||||
name="limitBoneWeights">0</Setting>
|
||||
<Setting
|
||||
name="LODType">TrailingNumber</Setting>
|
||||
<Setting
|
||||
name="removeRedundantMats">0</Setting>
|
||||
<Setting
|
||||
name="reverseWindingOrder">0</Setting>
|
||||
<Setting
|
||||
name="ScaleOverride">1</Setting>
|
||||
<Setting
|
||||
name="TransformUVs">0</Setting>
|
||||
<Setting
|
||||
name="UpAxisOverride">Z_AXIS</Setting>
|
||||
</Group>
|
||||
<Group name="Sounds">
|
||||
<Setting name="Compressed">0</Setting>
|
||||
<Setting name="PitchAdjust">1.0</Setting>
|
||||
<Setting name="VolumeAdjust">1.0</Setting>
|
||||
<Group
|
||||
name="Sounds">
|
||||
<Setting
|
||||
name="Compressed">0</Setting>
|
||||
<Setting
|
||||
name="PitchAdjust">1.0</Setting>
|
||||
<Setting
|
||||
name="VolumeAdjust">1.0</Setting>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group
|
||||
name="NewTest">
|
||||
<Group
|
||||
name="Animations">
|
||||
<Setting
|
||||
name="animFPS">2</Setting>
|
||||
<Setting
|
||||
name="animTiming">Seconds</Setting>
|
||||
<Setting
|
||||
name="ImportAnimations">1</Setting>
|
||||
<Setting
|
||||
name="SeparateAnimations">1</Setting>
|
||||
</Group>
|
||||
<Group
|
||||
name="Collision">
|
||||
<Setting
|
||||
name="CollisionMeshPrefix">Col</Setting>
|
||||
<Setting
|
||||
name="GenCollisionType">CollisionMesh</Setting>
|
||||
<Setting
|
||||
name="GenerateCollisions">1</Setting>
|
||||
<Setting
|
||||
name="GenerateLOSCollisions">1</Setting>
|
||||
<Setting
|
||||
name="GenLOSCollisionType">CollisionMesh</Setting>
|
||||
<Setting
|
||||
name="LOSCollisionMeshPrefix">LOS</Setting>
|
||||
</Group>
|
||||
<Group
|
||||
name="General">
|
||||
<Setting
|
||||
name="AutomaticallyPromptMissingFiles">0</Setting>
|
||||
<Setting
|
||||
name="DuplicatAutoResolution">AutoPrune</Setting>
|
||||
<Setting
|
||||
name="PreventImportWithErrors">1</Setting>
|
||||
<Setting
|
||||
name="WarningsAsErrors">0</Setting>
|
||||
<Setting
|
||||
name="AddDirectoryPrefixToAssetName">0</Setting>
|
||||
</Group>
|
||||
<Group
|
||||
name="Images">
|
||||
<Setting
|
||||
name="AOTypeSuffixes">_AO,_AMBIENT,_AMBIENTOCCLUSION</Setting>
|
||||
<Setting
|
||||
name="Compressed">1</Setting>
|
||||
<Setting
|
||||
name="DiffuseTypeSuffixes">_ALBEDO,_DIFFUSE,_ALB,_DIF,_COLOR,_COL</Setting>
|
||||
<Setting
|
||||
name="GenerateMaterialOnImport">1</Setting>
|
||||
<Setting
|
||||
name="ImageType">N/A</Setting>
|
||||
<Setting
|
||||
name="IsHDR">0</Setting>
|
||||
<Setting
|
||||
name="MetalnessTypeSuffixes">_METAL,_MET,_METALNESS,_METALLIC</Setting>
|
||||
<Setting
|
||||
name="NormalTypeSuffixes">_NORMAL,_NORM</Setting>
|
||||
<Setting
|
||||
name="PBRTypeSuffixes">_COMP,_COMPOSITE,_PBR,-COMP,-COMPOSITE,-PBR,_ORM,-ORM</Setting>
|
||||
<Setting
|
||||
name="RoughnessTypeSuffixes">_ROUGH,_ROUGHNESS</Setting>
|
||||
<Setting
|
||||
name="Scaling">1.0</Setting>
|
||||
<Setting
|
||||
name="SmoothnessTypeSuffixes">_SMOOTH,_SMOOTHNESS</Setting>
|
||||
<Setting
|
||||
name="TextureFilteringMode">Bilinear</Setting>
|
||||
<Setting
|
||||
name="UseMips">1</Setting>
|
||||
</Group>
|
||||
<Group
|
||||
name="Materials">
|
||||
<Setting
|
||||
name="CreateComposites">1</Setting>
|
||||
<Setting
|
||||
name="ImportMaterials">1</Setting>
|
||||
<Setting
|
||||
name="PopulateMaterialMaps">1</Setting>
|
||||
<Setting
|
||||
name="UseDiffuseSuffixOnOriginImage">1</Setting>
|
||||
<Setting
|
||||
name="UseExistingMaterials">1</Setting>
|
||||
</Group>
|
||||
<Group
|
||||
name="Meshes">
|
||||
<Setting
|
||||
name="AdjustCenter">0</Setting>
|
||||
<Setting
|
||||
name="AdjustFloor">0</Setting>
|
||||
<Setting
|
||||
name="calcTangentSpace">0</Setting>
|
||||
<Setting
|
||||
name="CollapseSubmeshes">0</Setting>
|
||||
<Setting
|
||||
name="convertLeftHanded">0</Setting>
|
||||
<Setting
|
||||
name="DoScaleOverride">0</Setting>
|
||||
<Setting
|
||||
name="DoUpAxisOverride">0</Setting>
|
||||
<Setting
|
||||
name="findInstances">0</Setting>
|
||||
<Setting
|
||||
name="flipUVCoords">0</Setting>
|
||||
<Setting
|
||||
name="genUVCoords">0</Setting>
|
||||
<Setting
|
||||
name="IgnoreNodeScale">0</Setting>
|
||||
<Setting
|
||||
name="ImportMesh">1</Setting>
|
||||
<Setting
|
||||
name="invertNormals">0</Setting>
|
||||
<Setting
|
||||
name="JoinIdenticalVerts">0</Setting>
|
||||
<Setting
|
||||
name="limitBoneWeights">0</Setting>
|
||||
<Setting
|
||||
name="LODType">TrailingNumber</Setting>
|
||||
<Setting
|
||||
name="removeRedundantMats">0</Setting>
|
||||
<Setting
|
||||
name="reverseWindingOrder">0</Setting>
|
||||
<Setting
|
||||
name="ScaleOverride">1</Setting>
|
||||
<Setting
|
||||
name="TransformUVs">0</Setting>
|
||||
<Setting
|
||||
name="UpAxisOverride">Z_AXIS</Setting>
|
||||
</Group>
|
||||
<Group
|
||||
name="Sounds">
|
||||
<Setting
|
||||
name="Compressed">0</Setting>
|
||||
<Setting
|
||||
name="PitchAdjust">1.0</Setting>
|
||||
<Setting
|
||||
name="VolumeAdjust">1.0</Setting>
|
||||
</Group>
|
||||
</Group>
|
||||
</AssetImportSettings>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser"
|
||||
scriptFile="@assetFile=assetBrowser.gui"
|
||||
GUIFile="@assetFile=assetBrowser.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowserImportLog"
|
||||
scriptFile="@assetFile=assetImportLog.gui"
|
||||
GUIFile="@assetFile=assetImportLog.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_AddModule"
|
||||
scriptFile="@assetFile=addModuleWindow.gui"
|
||||
GUIFile="@assetFile=addModuleWindow.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_AddPackage"
|
||||
scriptFile="@assetFile=addPackageWindow.gui"
|
||||
GUIFile="@assetFile=addPackageWindow.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_SelectModule"
|
||||
scriptFile="@assetFile=selectModule.gui"
|
||||
GUIFile="@assetFile=selectModule.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_SelectPackage"
|
||||
scriptFile="@assetFile=selectPackage.gui"
|
||||
GUIFile="@assetFile=selectPackage.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_assetNameEdit"
|
||||
scriptFile="@assetFile=assetNameEdit.gui"
|
||||
GUIFile="@assetFile=assetNameEdit.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_editAsset"
|
||||
scriptFile="@assetFile=editAsset.gui"
|
||||
GUIFile="@assetFile=editAsset.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_editModule"
|
||||
scriptFile="@assetFile=editModule.gui"
|
||||
GUIFile="@assetFile=editModule.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_newAsset"
|
||||
scriptFile="@assetFile=newAsset.gui"
|
||||
GUIFile="@assetFile=newAsset.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_newComponentAsset"
|
||||
scriptFile="@assetFile=newComponentAsset.gui"
|
||||
GUIFile="@assetFile=newComponentAsset.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetBrowser_newFolder"
|
||||
scriptFile="@assetFile=newFolder.gui"
|
||||
GUIFile="@assetFile=newFolder.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="AssetImportCtrl"
|
||||
scriptFile="@assetFile=assetImport.gui"
|
||||
GUIFile="@assetFile=assetImport.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="LooseFileAudit"
|
||||
scriptFile="@assetFile=looseFileAudit.gui"
|
||||
GUIFile="@assetFile=looseFileAudit.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="SelectAssetPath"
|
||||
scriptFile="@assetFile=selectPath.gui"
|
||||
GUIFile="@assetFile=selectPath.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -197,7 +197,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
|
||||
new GuiIconButtonCtrl() {
|
||||
buttonMargin = "4 4";
|
||||
iconBitmap = "tools/gui/images/stencilIcons/phone.png";
|
||||
bitmapAsset = "ToolsModule:phone_image";
|
||||
iconLocation = "Left";
|
||||
sizeIconToButton = "1";
|
||||
makeIconSquare = "1";
|
||||
|
|
@ -225,7 +225,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
};
|
||||
new GuiIconButtonCtrl() {
|
||||
buttonMargin = "4 4";
|
||||
iconBitmap = "tools/gui/images/stencilIcons/plus.png";
|
||||
bitmapAsset = "ToolsModule:plus_image";
|
||||
iconLocation = "Left";
|
||||
sizeIconToButton = "1";
|
||||
makeIconSquare = "1";
|
||||
|
|
@ -253,7 +253,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
};
|
||||
new GuiIconButtonCtrl() {
|
||||
buttonMargin = "4 4";
|
||||
iconBitmap = "tools/gui/images/stencilIcons/import.png";
|
||||
bitmapAsset = "ToolsModule:import_image";
|
||||
iconLocation = "Left";
|
||||
sizeIconToButton = "1";
|
||||
makeIconSquare = "1";
|
||||
|
|
@ -281,7 +281,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
};
|
||||
new GuiIconButtonCtrl() {
|
||||
buttonMargin = "4 4";
|
||||
iconBitmap = "tools/gui/images/stencilIcons/filter.png";
|
||||
bitmapAsset = "ToolsModule:filter_image";
|
||||
iconLocation = "Left";
|
||||
sizeIconToButton = "1";
|
||||
makeIconSquare = "1";
|
||||
|
|
@ -310,7 +310,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
};
|
||||
new GuiIconButtonCtrl() {
|
||||
buttonMargin = "4 4";
|
||||
iconBitmap = "tools/gui/images/stencilIcons/gear.png";
|
||||
bitmapAsset = "ToolsModule:gear_image";
|
||||
iconLocation = "Left";
|
||||
sizeIconToButton = "1";
|
||||
makeIconSquare = "1";
|
||||
|
|
@ -339,7 +339,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
};
|
||||
new GuiIconButtonCtrl() {
|
||||
buttonMargin = "4 4";
|
||||
iconBitmap = "tools/gui/images/stencilIcons/warning.png";
|
||||
bitmapAsset = "ToolsModule:warning_image";
|
||||
iconLocation = "Left";
|
||||
sizeIconToButton = "1";
|
||||
makeIconSquare = "1";
|
||||
|
|
@ -469,7 +469,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
command="AssetBrowserFolderSearchFilter.onEdited();";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/stencilIcons/zoom.png";
|
||||
bitmapAsset = "ToolsModule:zoom_image";
|
||||
bitmapMode = "Stretched";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -631,7 +631,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
canSaveDynamicFields = "0";
|
||||
|
||||
new GuiBitmapButtonCtrl(AssetBrowser_NavigateBackBtn) {
|
||||
bitmap = "tools/gui/images/folderUp.png";
|
||||
bitmapAsset = "ToolsModule:folderUp_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -657,7 +657,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl(AssetBrowser_NavigateForwardBtn) {
|
||||
bitmap = "tools/gui/images/folderDown.png";
|
||||
bitmapAsset = "ToolsModule:folderDown_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -758,7 +758,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
canSaveDynamicFields = "0";
|
||||
|
||||
new GuiBitmapButtonCtrl(AssetBrowser_VisibilityOptions) {
|
||||
bitmap = "tools/gui/images/visible";
|
||||
bitmapAsset = "ToolsModule:visible_n_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -814,7 +814,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
command="AssetBrowserSearchFilter.onEdited();";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/stencilIcons/zoom.png";
|
||||
bitmapAsset = "ToolsModule:zoom_image";
|
||||
bitmapMode = "Stretched";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -840,7 +840,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/save-icon";
|
||||
bitmapAsset = "ToolsModule:save_icon_n_image";
|
||||
bitmapMode = "Stretched";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -1034,7 +1034,7 @@ $guiContent = new GuiControl(AssetBrowser) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl(AssetBrowser_ToggleFolderPanel) {
|
||||
bitmap = "tools/gui/images/stencilIcons/previous.png";
|
||||
bitmapAsset = "ToolsModule:previous_image";
|
||||
bitmapMode = "Stretched";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ $guiContent = new GuiControl(AssetImportCtrl) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconOpen.png";
|
||||
bitmapAsset = "ToolsModule:iconOpen_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -221,7 +221,7 @@ $guiContent = new GuiControl(AssetImportCtrl) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/save-as";
|
||||
bitmapAsset = "ToolsModule:save_as_n_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -504,7 +504,7 @@ $guiContent = new GuiControl(AssetImportCtrl) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl(ImportLogButton) {
|
||||
bitmap = "tools/gui/images/iconInformation.png";
|
||||
bitmapAsset = "ToolsModule:iconInformation_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="assetImportConfigEditor"
|
||||
scriptFile="@assetFile=assetImportConfigEditor.gui"
|
||||
GUIFile="@assetFile=assetImportConfigEditor.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -198,7 +198,7 @@ $guiContent = new GuiControl(AssetImportConfigEditor) {
|
|||
canSaveDynamicFields = "0";
|
||||
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconAdd.png";
|
||||
bitmapAsset = "ToolsModule:iconAdd_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -225,7 +225,7 @@ $guiContent = new GuiControl(AssetImportConfigEditor) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconDelete.png";
|
||||
bitmapAsset = "ToolsModule:iconDelete_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="createNewCollectionSetCtrl"
|
||||
scriptFile="@assetFile=createNewCollectionSet.gui"
|
||||
GUIFile="@assetFile=createNewCollectionSet.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="gameObjectCreator"
|
||||
scriptFile="@assetFile=gameObjectCreator.gui"
|
||||
GUIFile="@assetFile=gameObjectCreator.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -132,7 +132,7 @@ $guiContent = new GuiControl(GameObjectCreator) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl(GameObjectCreatorPkgBtn) {
|
||||
bitmap = "tools/gui/images/iconAdd.png";
|
||||
bitmapAsset = "ToolsModule:iconAdd_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -119,7 +119,7 @@ $guiContent = new GuiControl(AssetBrowser_newAsset) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconOpen.png";
|
||||
bitmapAsset = "ToolsModule:iconOpen_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ $guiContent = new GuiControl(AssetBrowser_newComponentAsset) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconAdd.png";
|
||||
bitmapAsset = "ToolsModule:iconAdd_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ $guiContent = new GuiControl(AssetBrowser_SelectModule) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconAdd.png";
|
||||
bitmapAsset = "ToolsModule:iconAdd_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ $guiContent = new GuiControl(AssetBrowser_SelectPackage) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconAdd.png";
|
||||
bitmapAsset = "ToolsModule:iconAdd_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ $guiContent = new GuiControl(SelectAssetPath) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/clear-icon";
|
||||
bitmapAsset = "ToolsModule:clear_icon_n_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -64,8 +64,6 @@ function initializeAssetBrowser()
|
|||
exec("./guis/selectModule.gui");
|
||||
exec("./guis/selectPath.gui");
|
||||
exec("./guis/editModule.gui");
|
||||
exec("./guis/importTemplateModules.gui");
|
||||
exec("./guis/assetPreviewButtonsTemplate.gui");
|
||||
exec("./guis/newFolder.gui");
|
||||
exec("./guis/assetImportLog.gui");
|
||||
exec("./guis/looseFileAudit.gui");
|
||||
|
|
@ -202,4 +200,4 @@ function TSStatic::onConstructField(%this, %fieldName, %fieldLabel, %fieldTypeNa
|
|||
%makeCommand = %this @ ".build" @ %fieldTypeName @ "Field(\""@ %fieldName @ "\",\"" @ %fieldLabel @ "\",\"" @ %fieldDesc @ "\",\"" @
|
||||
%fieldDefaultVal @ "\",\"" @ %fieldDataVals @ "\",\"" @ %inspector @ "." @ %callbackName @ "\",\"" @ %ownerObj @"\");";
|
||||
eval(%makeCommand);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ new SimGroup(AssetBrowserPreviewCache);
|
|||
//AssetBrowser.addToolbarButton
|
||||
function AssetBrowser::addToolbarButton(%this)
|
||||
{
|
||||
%filename = expandFilename("tools/gui/images/stencilIcons/menuGrid");
|
||||
%button = new GuiBitmapButtonCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
internalName = AssetBrowserBtn;
|
||||
|
|
@ -21,7 +20,7 @@ function AssetBrowser::addToolbarButton(%this)
|
|||
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||
ToolTip = "Asset Browser";
|
||||
hovertime = "750";
|
||||
bitmap = %filename;
|
||||
bitmapAsset = "ToolsModule:menuGrid_n_image";
|
||||
bitmapMode = "Stretched";
|
||||
buttonType = "PushButton";
|
||||
groupNum = "0";
|
||||
|
|
@ -455,15 +454,6 @@ function AssetBrowser::buildAssetPreview( %this, %asset, %moduleName )
|
|||
|
||||
%doubleClickCommand = "AssetBrowser.editAsset( "@%assetDesc@" );";
|
||||
|
||||
/*if(%assetType $= "ShapeAsset")
|
||||
{
|
||||
%previewButton = AssetPreviewButtonsTemplate-->ShapeAssetPreviewButton.deepClone();
|
||||
}
|
||||
else
|
||||
{
|
||||
%previewButton = AssetPreviewButtonsTemplate-->GeneralAssetPreviewButton.deepClone();
|
||||
}*/
|
||||
|
||||
%textBottomPad = 20;
|
||||
|
||||
%previewButton = new GuiIconButtonCtrl()
|
||||
|
|
@ -519,7 +509,7 @@ function AssetBrowser::buildAssetPreview( %this, %asset, %moduleName )
|
|||
%previewButton.moduleName = %moduleName;
|
||||
%previewButton.assetType = %assetType;
|
||||
|
||||
%previewButton.iconBitmap = %this.previewData.previewImage;
|
||||
%previewButton.bitmapAsset = %this.previewData.previewImage;
|
||||
|
||||
%previewButton.profile = "AssetBrowserPreview" @ %previewButton.assetType;
|
||||
%previewButton.tooltip = %this.previewData.tooltip;
|
||||
|
|
@ -2169,7 +2159,7 @@ function AssetBrowser::updateNavigationBreadcrumb(%this, %address)
|
|||
%folderSpacerButton = new GuiBitmapButtonCtrl()
|
||||
{
|
||||
profile = ToolsGuiButtonProfile;
|
||||
bitmap = "tools/gui/images/rightArrowWhite";
|
||||
bitmapAsset = "ToolsModule:rightArrowWhite_image";
|
||||
bitmapMode = "Centered";
|
||||
extent = "25" SPC AssetBrowser_BreadcrumbBar.extent.y;
|
||||
//command = "AssetBrowser.navigateTo(\"" @ %rebuiltPath @ "\");";
|
||||
|
|
@ -2602,4 +2592,4 @@ function AssetBrowser::importLooseFiles(%this)
|
|||
{
|
||||
echo("Adding loose files at directory " @ %this.dirHandler.currentAddress);
|
||||
LooseFileAuditWindow.showDialog(%this.dirHandler.currentAddress);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ function setupImportConfigSettingsList()
|
|||
{
|
||||
new ArrayObject(ImportAssetConfigSettingsList);
|
||||
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/DuplicatAutoResolution", "Duplicate Asset Auto-Resolution Action", "list", "", "AutoPrune", "None,AutoPrune,AutoRename");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/DuplicateAutoResolution", "Duplicate Asset Auto-Resolution Action", "list", "", "AutoRename", "None,AutoPrune,AutoRename,FolderPrefix");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/WarningsAsErrors", "Warnings As Errors", "bool", "", "0", "", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/PreventImportWithErrors", "Prevent Import With Errors", "bool", "", "1", "", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/AutomaticallyPromptMissingFiles", "Automatically Prompt Missing Files", "bool", "", "0", "", "");
|
||||
|
|
|
|||
|
|
@ -140,9 +140,9 @@ function AssetBrowser::buildComponentAssetPreview(%this, %assetDef, %previewData
|
|||
%previewData.assetPath = %assetDef.scriptFile;
|
||||
%previewData.doubleClickCommand = "EditorOpenFileInTorsion( "@%previewData.assetPath@", 0 );";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/componentIcon";
|
||||
%previewData.previewImage = "ToolsModule:componentIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.friendlyName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
%previewData.tooltip = %assetDef.friendlyName @ "\n" @ %assetDef;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ function AssetBrowser::buildCppPreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetPath = %assetDef.codeFilePath;
|
||||
%previewData.doubleClickCommand = "echo(\"Not yet implemented to edit C++ files from the editor\");";//"EditorOpenFileInTorsion( "@%previewData.assetPath@", 0 );";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/cppIcon";
|
||||
%previewData.previewImage = "ToolsModule:cppIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ function AssetBrowser::buildCreatorPreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetName = %name;
|
||||
%previewData.assetPath = "";
|
||||
|
||||
%previewData.previewImage = "tools/classIcons/" @ %class;
|
||||
%previewData.previewImage = "ToolsModule:" @ %class @ "_image";
|
||||
|
||||
//%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ function AssetBrowser::buildDatablockPreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetName = %assetDef;
|
||||
%previewData.assetPath = "";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/datablockIcon";
|
||||
%previewData.previewImage = "ToolsModule:datablockIcon_image";
|
||||
|
||||
//Lets see if we have a icon for specifically for this datablock type
|
||||
%dataClass = %assetDef.getClassName();
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ function AssetBrowser::buildFolderPreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetName = %assetDef.assetName;
|
||||
%previewData.assetPath = %assetDef.dirPath;
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/folderIcon";
|
||||
%previewData.previewImage = "ToolsModule:FolderIcon_image";
|
||||
|
||||
//%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ function AssetBrowser::buildGameObjectAssetPreview(%this, %assetDef, %previewDat
|
|||
%previewData.assetPath = %assetDef.scriptFile;
|
||||
%previewData.doubleClickCommand = "EditorOpenFileInTorsion( "@%previewData.assetPath@", 0 );";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/gameObjectIcon";
|
||||
%previewData.previewImage = "ToolsModule:gameObjectIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.gameObjectName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
@ -293,4 +293,4 @@ function GuiInspectorTypeGameObjectAssetPtr::onClick( %this, %fieldName )
|
|||
//We've gotta be trying to create a GameObject, so kick that off
|
||||
AssetBrowser.createGameObjectAsset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,9 +171,9 @@ function AssetBrowser::buildGUIAssetPreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetPath = %assetDef.GUIFilePath;
|
||||
%previewData.doubleClickCommand = "";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/guiIcon";
|
||||
%previewData.previewImage = "ToolsModule:guiIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
%previewData.tooltip = %assetDef.assetName;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,15 +172,55 @@ function AssetBrowser::importImageAsset(%this, %assetItem)
|
|||
|
||||
function AssetBrowser::buildImageAssetPreview(%this, %assetDef, %previewData)
|
||||
{
|
||||
%module = %this.dirHandler.getModuleFromAddress(makeRelativePath(filePath(%assetDef.getImagePath())));
|
||||
%previewPath = "tools/resources/previewCache/" @ %module.moduleId @ "/";
|
||||
|
||||
if(!IsDirectory(%previewPath))
|
||||
{
|
||||
%this.dirHandler.createFolder(%previewPath);
|
||||
}
|
||||
|
||||
%generatePreview = false;
|
||||
|
||||
%previewFilePath = %previewPath @ %assetDef.assetName @ "_Preview.png";
|
||||
if(!isFile(%previewFilePath) || (compareFileTimes(%assetDef.getImagePath(), %previewFilePath) == 1))
|
||||
{
|
||||
%generatePreview = true;
|
||||
}
|
||||
|
||||
%previewAssetName = %module.moduleId @ "_" @ %assetDef.assetName @ "_PreviewImage";
|
||||
|
||||
if(%generatePreview)
|
||||
{
|
||||
displayEditorLoadingGui("Generating Image Asset Preview...");
|
||||
|
||||
%success = saveScaledImage(%assetDef.getImagePath(), %previewFilePath);
|
||||
|
||||
%previewAsset = new ImageAsset()
|
||||
{
|
||||
assetName = %previewAssetName;
|
||||
versionId = 1;
|
||||
imageFile = fileName(%previewFilePath);
|
||||
};
|
||||
|
||||
%previewImgAssetPath = %previewPath @ %previewAsset.assetName @ ".asset.taml";
|
||||
%assetImportSuccessful = TAMLWrite(%previewAsset, %previewImgAssetPath);
|
||||
|
||||
%toolsModuleDef = ModuleDatabase.findModule("ToolsModule",1);
|
||||
|
||||
%success = AssetDatabase.addDeclaredAsset(%toolsModuleDef, %previewImgAssetPath);
|
||||
|
||||
hideEditorLoadingGui();
|
||||
}
|
||||
|
||||
//Revalidate. If it didn't work, just use the default placeholder one
|
||||
if(!isFile(%previewFilePath))
|
||||
%previewAssetName = "ToolsModule:genericAssetIcon_image";
|
||||
|
||||
%previewData.assetName = %assetDef.assetName;
|
||||
%previewData.assetPath = %assetDef.scriptFile;
|
||||
//%previewData.doubleClickCommand = "EditorOpenFileInTorsion( "@%previewData.assetPath@", 0 );";
|
||||
|
||||
%imageFilePath = %assetDef.getImagePath();
|
||||
if(isFile(%imageFilePath))
|
||||
%previewData.previewImage = %imageFilePath;
|
||||
else
|
||||
%previewData.previewImage = "core/rendering/images/unavailable";
|
||||
%previewData.previewImage = "ToolsModule:" @ %previewAssetName;//%assetDef.fileName;
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ function AssetBrowser::buildLevelAssetPreview(%this, %assetDef, %previewData)
|
|||
if(isFile(%levelPreviewImage))
|
||||
%previewData.previewImage = %levelPreviewImage;
|
||||
else
|
||||
%previewData.previewImage = "tools/assetBrowser/art/levelIcon";
|
||||
%previewData.previewImage = "ToolsModule:levelIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ function AssetBrowser::buildLooseFilePreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetName = %assetDef.assetName;
|
||||
%previewData.assetPath = %fullPath;
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/looseFileIcon";
|
||||
%previewData.previewImage = "ToolsModule:looseFileIcon_image";
|
||||
|
||||
//%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -8,18 +8,21 @@ function AssetBrowser::createMaterialAsset(%this)
|
|||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%sgfPath = %assetPath @ %assetName @ ".sgf";
|
||||
%scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension;
|
||||
|
||||
%asset = new MaterialAsset()
|
||||
{
|
||||
AssetName = %assetName;
|
||||
versionId = 1;
|
||||
shaderData = "";
|
||||
shaderGraph = %sgfPath;
|
||||
materialDefinitionName = %assetName;
|
||||
scriptFile = %assetName @ "." @ $TorqueScriptFileExtension;
|
||||
};
|
||||
|
||||
TamlWrite(%asset, %tamlpath);
|
||||
|
||||
%mat = new Material(%assetName);
|
||||
%mat.save(%scriptPath);
|
||||
|
||||
%moduleDef = ModuleDatabase.findModule(%moduleName, 1);
|
||||
AssetDatabase.addDeclaredAsset(%moduleDef, %tamlpath);
|
||||
|
||||
|
|
@ -43,18 +46,6 @@ function AssetBrowser::editMaterialAsset(%this, %assetDef)
|
|||
MaterialEditorGui.setActiveMaterial( %assetDef.materialDefinitionName );
|
||||
|
||||
AssetBrowser.hideDialog();
|
||||
|
||||
//
|
||||
//
|
||||
/*%assetDef.materialDefinitionName.reload();
|
||||
$Tools::materialEditorList = "";
|
||||
EWorldEditor.clearSelection();
|
||||
MaterialEditorGui.currentObject = 0;
|
||||
MaterialEditorGui.currentMode = "asset";
|
||||
MaterialEditorGui.currentMaterial = %assetDef.materialDefinitionName;
|
||||
MaterialEditorGui.setActiveMaterial( %assetDef.materialDefinitionName);
|
||||
EditorGui.setEditor(MaterialEditorPlugin);
|
||||
AssetBrowser.hideDialog();*/
|
||||
}
|
||||
|
||||
//Renames the asset
|
||||
|
|
@ -347,7 +338,7 @@ function AssetBrowser::importMaterialAsset(%this, %assetItem)
|
|||
%depAssetType = %childAssetItem.assetType;
|
||||
if(%depAssetType $= "ImageAsset")
|
||||
{
|
||||
%matSet = "%newAsset.imageMap"@%dependencySlotId@"=\"@Asset="@%moduleName@":"@%childAssetItem.assetName@"\";";
|
||||
%matSet = "%newAsset.imageMap"@%dependencySlotId@"=\"@asset="@%moduleName@":"@%childAssetItem.assetName@"\";";
|
||||
eval(%matSet);
|
||||
%dependencySlotId++;
|
||||
}
|
||||
|
|
@ -432,39 +423,77 @@ function AssetBrowser::importMaterialAsset(%this, %assetItem)
|
|||
|
||||
function AssetBrowser::buildMaterialAssetPreview(%this, %assetDef, %previewData)
|
||||
{
|
||||
%module = %this.dirHandler.getModuleFromAddress(makeRelativePath(filePath(%assetDef.getScriptPath())));
|
||||
%previewPath = "tools/resources/previewCache/" @ %module.moduleId @ "/";
|
||||
|
||||
if(!IsDirectory(%previewPath))
|
||||
{
|
||||
%this.dirHandler.createFolder(%previewPath);
|
||||
}
|
||||
|
||||
%generatePreview = false;
|
||||
|
||||
%previewFilePath = %previewPath @ %assetDef.assetName @ "_Preview.png";
|
||||
if(!isFile(%previewFilePath) || (compareFileTimes(%assetDef.getImagePath(), %previewFilePath) == 1))
|
||||
{
|
||||
%generatePreview = true;
|
||||
}
|
||||
|
||||
%previewAssetName = %module.moduleId @ "_" @ %assetDef.assetName @ "_PreviewImage";
|
||||
|
||||
if(%generatePreview)
|
||||
{
|
||||
displayEditorLoadingGui("Generating Material Asset Preview...");
|
||||
|
||||
if(isObject(%assetDef.materialDefinitionName))
|
||||
{
|
||||
if(isFile(%assetDef.materialDefinitionName.getDiffuseMap(0)))
|
||||
{
|
||||
%difMap = %assetDef.materialDefinitionName.getDiffuseMap(0);
|
||||
}
|
||||
else if(%assetDef.materialDefinitionName.getDiffuseMapAsset(0) !$= "")
|
||||
{
|
||||
%imgAsset = AssetDatabase.acquireAsset(%assetDef.materialDefinitionName.getDiffuseMapAsset(0));
|
||||
%difMap = %imgAsset.getImagePath();
|
||||
}
|
||||
|
||||
%success = saveScaledImage(%difMap, %previewFilePath);
|
||||
|
||||
%previewAsset = new ImageAsset()
|
||||
{
|
||||
assetName = %previewAssetName;
|
||||
versionId = 1;
|
||||
imageFile = fileName(%previewFilePath);
|
||||
};
|
||||
|
||||
%previewImgAssetPath = %previewPath @ %previewAsset.assetName @ ".asset.taml";
|
||||
%assetImportSuccessful = TAMLWrite(%previewAsset, %previewImgAssetPath);
|
||||
|
||||
%toolsModuleDef = ModuleDatabase.findModule("ToolsModule",1);
|
||||
|
||||
%success = AssetDatabase.addDeclaredAsset(%toolsModuleDef, %previewImgAssetPath);
|
||||
}
|
||||
|
||||
hideEditorLoadingGui();
|
||||
}
|
||||
|
||||
//Revalidate. If it didn't work, just use the default placeholder one
|
||||
if(!isFile(%previewFilePath))
|
||||
%previewAssetName = "ToolsModule:genericAssetIcon_image";
|
||||
|
||||
%previewData.assetName = %assetDef.assetName;
|
||||
%previewData.assetPath = %assetDef.scriptFile;
|
||||
|
||||
%previewData.previewImage = "ToolsModule:" @ %previewAssetName;//%assetDef.fileName;
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
||||
//Lotta prepwork
|
||||
/*%previewData.doubleClickCommand = %assetDef@".materialDefinitionName.reload(); "
|
||||
@ "$Tools::materialEditorList = \"\";"
|
||||
@ "EWorldEditor.clearSelection();"
|
||||
@ "MaterialEditorGui.currentObject = 0;"
|
||||
@ "MaterialEditorGui.currentMode = \"asset\";"
|
||||
@ "MaterialEditorGui.currentMaterial = "@%assetDef@".materialDefinitionName;"
|
||||
@ "MaterialEditorGui.setActiveMaterial( "@%assetDef@".materialDefinitionName );"
|
||||
@ "EditorGui.setEditor(MaterialEditorPlugin); "
|
||||
@ "AssetBrowser.hideDialog();";*/
|
||||
|
||||
if(%this.selectMode)
|
||||
%previewData.doubleClickCommand = "AssetBrowser.selectAsset( AssetBrowser.selectedAsset );";
|
||||
else
|
||||
%previewData.doubleClickCommand = "AssetBrowser.editAsset( "@%assetDef@" );";
|
||||
|
||||
%test = %assetDef.materialDefinitionName.diffuseMapAsset[0];
|
||||
|
||||
if(isFile(%assetDef.materialDefinitionName.diffuseMap[0]))
|
||||
%previewData.previewImage = %assetDef.materialDefinitionName.diffuseMap[0];
|
||||
else if(%assetDef.materialDefinitionName.diffuseMapAsset[0] !$= "")
|
||||
{
|
||||
%imgAsset = AssetDatabase.acquireAsset(%assetDef.materialDefinitionName.diffuseMapAsset[0]);
|
||||
%previewData.previewImage = %imgAsset.getImagePath();
|
||||
}
|
||||
else
|
||||
%previewData.previewImage = "tools/assetBrowser/art/materialIcon";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
%previewData.tooltip = "Asset Name: " @ %assetDef.assetName @ "\n" @
|
||||
"Asset Type: Material Asset\n" @
|
||||
"Asset Definition ID: " @ %assetDef;
|
||||
|
|
@ -490,6 +519,12 @@ function AssetBrowser::onMaterialAssetEditorDropped(%this, %assetDef, %position)
|
|||
%obj.materialSlot0 = %assetDef.getAssetId();
|
||||
echo("MaterialSlot0 set to " @ %assetDef.getAssetId());
|
||||
}
|
||||
else if(%obj.isField("materialAsset"))
|
||||
{
|
||||
%obj.materialAsset = %assetDef.getAssetId();
|
||||
echo("materialAsset set to " @ %assetDef.getAssetId());
|
||||
}
|
||||
%obj.inspectPostApply();
|
||||
}
|
||||
|
||||
EWorldEditor.isDirty = true;
|
||||
|
|
@ -510,9 +545,9 @@ function GuiInspectorTypeMaterialAssetPtr::onControlDropped( %this, %payload, %p
|
|||
|
||||
if(%assetType $= "MaterialAsset")
|
||||
{
|
||||
//%assetDef = AssetDatabase.acquireAsset(%module @ ":" @ %assetName);
|
||||
|
||||
%this.setMaterialAsset(%module @ ":" @ %assetName);
|
||||
%cmd = %this @ ".apply(\""@ %module @ ":" @ %assetName @ "\");";
|
||||
echo("Changing asset via the " @ %cmd @ " command");
|
||||
eval(%cmd);
|
||||
}
|
||||
|
||||
EWorldEditor.isDirty = true;
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ function AssetBrowser::buildPostEffectAssetPreview(%this, %assetDef, %previewDat
|
|||
%previewData.assetPath = %assetDef.scriptFilePath;
|
||||
%previewData.doubleClickCommand = "";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/postEffectIcon";
|
||||
%previewData.previewImage = "ToolsModule:postEffectIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ function AssetBrowser::buildPrefabPreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetName = %assetDef.assetName;
|
||||
%previewData.assetPath = %fullPath;
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/genericAssetIcon";
|
||||
%previewData.previewImage = "ToolsModule:genericAssetIcon_image";
|
||||
|
||||
//%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -96,9 +96,9 @@ function AssetBrowser::buildTScriptPreview(%this, %assetDef, %previewData)
|
|||
%previewData.doubleClickCommand = "EditorOpenFileInTorsion( \""@%previewData.assetPath@"\", 0 );";
|
||||
|
||||
if(%assetDef.isServerSide)
|
||||
%previewData.previewImage = "tools/assetBrowser/art/serverScriptIcon";
|
||||
%previewData.previewImage = "ToolsModule:serverScriptIcon_image";
|
||||
else
|
||||
%previewData.previewImage = "tools/assetBrowser/art/clien" @ $TorqueScriptFileExtension @ "Icon";
|
||||
%previewData.previewImage = "ToolsModule:clientScriptIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -143,13 +143,13 @@ function AssetBrowser::importShapeAsset(%this, %assetItem)
|
|||
%depAssetType = %childAssetItem.assetType;
|
||||
if(%childAssetItem.assetType $= "MaterialAsset")
|
||||
{
|
||||
%matSet = "%newAsset.materialSlot"@%dependencySlotId@"=\"@Asset="@%moduleName@":"@%childAssetItem.assetName@"\";";
|
||||
%matSet = "%newAsset.materialSlot"@%dependencySlotId@"=\"@asset="@%moduleName@":"@%childAssetItem.assetName@"\";";
|
||||
eval(%matSet);
|
||||
%dependencySlotId++;
|
||||
}
|
||||
else if(%depAssetType $= "AnimationAsset")
|
||||
{
|
||||
%matSet = "%newAsset.animationSequence"@%dependencySlotId@"=\"@Asset="@%moduleName@":"@%childAssetItem.assetName@"\";";
|
||||
%matSet = "%newAsset.animationSequence"@%dependencySlotId@"=\"@asset="@%moduleName@":"@%childAssetItem.assetName@"\";";
|
||||
eval(%matSet);
|
||||
%dependencySlotId++;
|
||||
}
|
||||
|
|
@ -245,15 +245,24 @@ function AssetBrowser::importShapeAsset(%this, %assetItem)
|
|||
function AssetBrowser::buildShapeAssetPreview(%this, %assetDef, %previewData)
|
||||
{
|
||||
%module = %this.dirHandler.getModuleFromAddress(makeRelativePath(filePath(%assetDef.getShapeFile())));
|
||||
%previewPath = "tools/resources/shapePreviewCache/" @ %module.moduleId @ "/";
|
||||
%previewPath = "tools/resources/previewCache/" @ %module.moduleId @ "/";
|
||||
|
||||
if(!IsDirectory(%previewPath))
|
||||
{
|
||||
%this.dirHandler.createFolder(%previewPath);
|
||||
}
|
||||
|
||||
%previewPath = %previewPath @ %assetDef.assetName @ "_Preview.png";
|
||||
if(!isFile(%previewPath))
|
||||
%generatePreview = false;
|
||||
|
||||
%previewFilePath = %previewPath @ %assetDef.assetName @ "_Preview.png";
|
||||
if(!isFile(%previewFilePath) || (compareFileTimes(%assetDef.getShapeFile(), %previewFilePath) == 1))
|
||||
{
|
||||
%generatePreview = true;
|
||||
}
|
||||
|
||||
%previewAssetName = %module.moduleId @ "_" @ %assetDef.assetName @ "_PreviewImage";
|
||||
|
||||
if(%generatePreview)
|
||||
{
|
||||
displayEditorLoadingGui("Generating Shape Asset Preview...");
|
||||
|
||||
|
|
@ -265,7 +274,7 @@ function AssetBrowser::buildShapeAssetPreview(%this, %assetDef, %previewData)
|
|||
%filePath = %assetDef.generateCachedPreviewImage();
|
||||
|
||||
%imposterPath = %filePath @ ".imposter.png";
|
||||
pathCopy(%imposterPath, %previewPath);
|
||||
pathCopy(%imposterPath, %previewFilePath);
|
||||
|
||||
//cleanup
|
||||
fileDelete(%imposterPath);
|
||||
|
|
@ -275,17 +284,31 @@ function AssetBrowser::buildShapeAssetPreview(%this, %assetDef, %previewData)
|
|||
|
||||
$TSLastDetail::dumpImposters = %oldImposterSetting;
|
||||
|
||||
%previewAsset = new ImageAsset()
|
||||
{
|
||||
assetName = %previewAssetName;
|
||||
versionId = 1;
|
||||
imageFile = fileName(%previewFilePath);
|
||||
};
|
||||
|
||||
%previewImgAssetPath = %previewPath @ %previewAsset.assetName @ ".asset.taml";
|
||||
%assetImportSuccessful = TAMLWrite(%previewAsset, %previewImgAssetPath);
|
||||
|
||||
%toolsModuleDef = ModuleDatabase.findModule("ToolsModule",1);
|
||||
|
||||
%success = AssetDatabase.addDeclaredAsset(%toolsModuleDef, %previewImgAssetPath);
|
||||
|
||||
hideEditorLoadingGui();
|
||||
}
|
||||
|
||||
//Revalidate. If it didn't work, just use the default placeholder one
|
||||
if(!isFile(%previewPath))
|
||||
%previewPath = "tools/assetBrowser/art/genericAssetIcon";
|
||||
if(!isFile(%previewFilePath))
|
||||
%previewAssetName = "ToolsModule:genericAssetIcon_image";
|
||||
|
||||
%previewData.assetName = %assetDef.assetName;
|
||||
%previewData.assetPath = %assetDef.fileName;
|
||||
|
||||
%previewData.previewImage = %previewPath;//%assetDef.fileName;
|
||||
%previewData.previewImage = "ToolsModule:" @ %previewAssetName;//%assetDef.fileName;
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ function AssetBrowser::buildShapeAnimationAssetPreview(%this, %assetDef, %previe
|
|||
@ "EditorGui.setEditor(MaterialEditorPlugin); "
|
||||
@ "AssetBrowser.hideDialog();";*/
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/animationIcon";
|
||||
%previewData.previewImage = "ToolsModule:animationIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ function AssetBrowser::buildSoundAssetPreview(%this, %assetDef, %previewData)
|
|||
else
|
||||
%previewData.doubleClickCommand = "AssetBrowser.editAsset( "@%assetDef@" );";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/soundIcon";
|
||||
%previewData.previewImage = "ToolsModule:soundIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ function AssetBrowser::buildStateMachineAssetPreview(%this, %assetDef, %previewD
|
|||
%previewData.assetPath = %assetDef.scriptFile;
|
||||
%previewData.doubleClickCommand = "AssetBrowser.editStateMachineAsset( "@%assetDef@" );";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/stateMachineIcon";
|
||||
%previewData.previewImage = "ToolsModule:stateMachineIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.friendlyName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ function AssetBrowser::buildTerrainAssetPreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetPath = "";
|
||||
%previewData.doubleClickCommand = "";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/gameObjectIcon";
|
||||
%previewData.previewImage = "ToolsModule:gameObjectIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.gameObjectName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ function AssetBrowser::buildTerrainMaterialAssetPreview(%this, %assetDef, %previ
|
|||
%previewData.assetPath = "";
|
||||
%previewData.doubleClickCommand = "";
|
||||
|
||||
%previewData.previewImage = "tools/assetBrowser/art/terrainMaterialIcon";
|
||||
%previewData.previewImage = "ToolsModule:terrainMaterialIcon_image";
|
||||
|
||||
%previewData.assetFriendlyName = %assetDef.gameObjectName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ function directoryHandler::navigateTo(%this, %address, %historyNav, %selectionNa
|
|||
%folderSpacerButton = new GuiBitmapButtonCtrl()
|
||||
{
|
||||
profile = ToolsGuiButtonProfile;
|
||||
bitmap = "tools/gui/images/rightArrowWhite";
|
||||
bitmapAsset = "ToolsModule:rightArrowWhite_image";
|
||||
bitmapMode = "Centered";
|
||||
extent = "25" SPC AssetBrowser_BreadcrumbBar.extent.y;
|
||||
//command = "AssetBrowser.navigateTo(\"" @ %rebuiltPath @ "\");";
|
||||
|
|
@ -188,8 +188,8 @@ function directoryHandler::getModuleFromAddress(%this, %address)
|
|||
%modulePath = makeRelativePath(%module.ModulePath);
|
||||
|
||||
//We don't want to add stuff directly to the root core or tools modules
|
||||
if(%modulePath $= "Core" || %modulePath $= "Tools")
|
||||
continue;
|
||||
//if(%modulePath $= "Core" || %modulePath $= "Tools")
|
||||
// continue;
|
||||
|
||||
if(startsWith(%address, %modulePath))
|
||||
{
|
||||
|
|
@ -338,4 +338,4 @@ function directoryHandler::copyFolder(%this, %fromFolder, %toFolder)
|
|||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ function AssetBrowser::editAsset(%this, %assetDef)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if(!isObject(%assetDef) && strchrpos(%assetDef, ":") != -1)
|
||||
else if(AssetDatabase.isDeclaredAsset(%assetDef))
|
||||
{
|
||||
//Turns out we were passed an assetid, not an asset definition.
|
||||
//Grab the asset def from that
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
function AssetBrowser_SelectModule::showDialog(%this, %callback)
|
||||
{
|
||||
AssetBrowser_SelectModule.callback = %callback;
|
||||
Canvas.pushDialog(AssetBrowser_SelectModule);
|
||||
}
|
||||
|
||||
function AssetBrowser_SelectModule::onWake(%this)
|
||||
{
|
||||
AssetBrowser_SelectModuleWindow-->ModuleList.refresh();
|
||||
|
|
|
|||
|
|
@ -14,6 +14,17 @@ function @@::initServer(%this)
|
|||
//This is called when the server is created for an actual game/map to be played
|
||||
function @@::onCreateGameServer(%this)
|
||||
{
|
||||
//These are common managed data files. For any datablock-based stuff that gets generated by the editors
|
||||
//(that doesn't have a specific associated file, like data for a player class) will go into these.
|
||||
//So we'll register them now if they exist.
|
||||
if(isFile("./scripts/managedData/managedDatablocks." @ $TorqueScriptFileExtension))
|
||||
%this.registerDatablock("./scripts/managedData/managedDatablocks");
|
||||
if(isFile("./scripts/managedData/managedForestItemData." @ $TorqueScriptFileExtension))
|
||||
%this.registerDatablock("./scripts/managedData/managedForestItemData");
|
||||
if(isFile("./scripts/managedData/managedParticleEmitterData." @ $TorqueScriptFileExtension))
|
||||
%this.registerDatablock("./scripts/managedData/managedParticleEmitterData");
|
||||
if(isFile("./scripts/managedData/managedParticleData." @ $TorqueScriptFileExtension))
|
||||
%this.registerDatablock("./scripts/managedData/managedParticleData");
|
||||
}
|
||||
|
||||
//This is called when the server is shut down due to the game/map being exited
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue