mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Added getShapeConstructorFilePath console function on shapeAsset
Fixed typo in import config settings for DuplicateAutoResolution Converted TSShapeConstructor to utilize assets Updated shape editor to work with assetified constructors Converted guiBitmapButtonCtrl to use assets
This commit is contained in:
parent
52c83d19e1
commit
88ae8a9665
181 changed files with 2343 additions and 1577 deletions
|
|
@ -284,7 +284,7 @@ function AssimpImportDlg::showDialog(%this, %shapePath, %cmd)
|
|||
if (isFile(%csPath))
|
||||
exec(%csPath);
|
||||
|
||||
%this.constructor = ShapeEditor.findConstructor(%this.path);
|
||||
%this.constructor = findShapeConstructorByFilename(%this.path);
|
||||
|
||||
// Only show the import dialog if required. Note that 'GetShapeInfo' will
|
||||
// fail if the source file is missing, or a cached.dts is available.
|
||||
|
|
@ -537,4 +537,4 @@ function AssimpImportDlg::saveSettingsTo(%this, %filename)
|
|||
|
||||
%fileObj.close();
|
||||
%fileObj.delete();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1259,7 +1259,7 @@ function ColladaImportDlg::showDialog(%this, %shapePath, %cmd)
|
|||
if (isFile(%csPath))
|
||||
exec(%csPath);
|
||||
|
||||
%this.constructor = ShapeEditor.findConstructor(%this.path);
|
||||
%this.constructor = findShapeConstructorByFilename(%this.path);
|
||||
|
||||
// Only show the import dialog if required. Note that 'enumColladaScene' will
|
||||
// fail if the COLLADA file is missing, or a cached.dts is available.
|
||||
|
|
@ -1768,4 +1768,4 @@ function showImportDialog(%shapePath, %cmd)
|
|||
if ( isObject(AssimpImportDlg) )
|
||||
AssimpImportDlg.showDialog(%shapePath, %cmd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@
|
|||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
};
|
||||
// ------------------------------ X Negitive ------------------------------------
|
||||
new GuiBitmapCtrl(matEd_cubemapEd_XNeg) {
|
||||
|
|
@ -213,7 +213,7 @@
|
|||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
};
|
||||
// ------------------------------ Y Positive ------------------------------------
|
||||
new GuiBitmapCtrl(matEd_cubemapEd_YPos) {
|
||||
|
|
@ -256,7 +256,7 @@
|
|||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
};
|
||||
// ------------------------------ Y Negitive ------------------------------------
|
||||
new GuiBitmapCtrl(matEd_cubemapEd_YNeG) {
|
||||
|
|
@ -299,7 +299,7 @@
|
|||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
};
|
||||
// ------------------------------ Z Positive ------------------------------------
|
||||
new GuiBitmapCtrl(matEd_cubemapEd_ZPos) {
|
||||
|
|
@ -342,7 +342,7 @@
|
|||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
};
|
||||
// ------------------------------ Z Negitive ------------------------------------
|
||||
new GuiBitmapCtrl(matEd_cubemapEd_ZNeg) {
|
||||
|
|
@ -385,7 +385,7 @@
|
|||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
};
|
||||
|
||||
// Create New Cubemap
|
||||
|
|
@ -404,7 +404,7 @@
|
|||
Command = "matEd_addCubemapWindow.setVisible(1);"; // -------------- Needs Hookup Create New Cubemap
|
||||
hovertime = "1000";
|
||||
tooltip = "Create New Cubemap";
|
||||
bitmap = "tools/gui/images/new";
|
||||
bitmapAsset = "ToolsModule:new_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -424,7 +424,7 @@
|
|||
Command = "MaterialEditorGui.showDeleteCubemapDialog();"; // -------------- Needs Hookup Delete Cubemap
|
||||
hovertime = "1000";
|
||||
tooltip = "Delete Cubemap";
|
||||
bitmap = "tools/gui/images/delete";
|
||||
bitmapAsset = "ToolsModule:delete_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -445,7 +445,7 @@
|
|||
Command = "MaterialEditorGui.showSaveCubemapDialog();"; // -------------- Needs Hookup Save Cubemap
|
||||
hovertime = "1000";
|
||||
tooltip = "Save Cubemap";
|
||||
bitmap = "tools/gui/images/save-icon";
|
||||
bitmapAsset = "ToolsModule:save_icon_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
|
|||
|
|
@ -531,4 +531,4 @@ function ESettingsWindow::getGameOptionsSettings(%this)
|
|||
SettingsInspector.startGroup("Options Settings");
|
||||
SettingsInspector.addSettingsField("Options/optionsList", "OptionsList", "OptionsSetting", "");
|
||||
SettingsInspector.endGroup();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
};
|
||||
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/clear-icon";
|
||||
bitmapAsset = "ToolsModule:clear_icon_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="menubar_snap_grid_d_image"
|
||||
imageFile="@assetFile=snap-grid_d.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="menubar_snap_grid_h_image"
|
||||
imageFile="@assetFile=snap-grid_h.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="menubar_snap_grid_n_image"
|
||||
imageFile="@assetFile=snap-grid_n.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<ImageAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="treeview_default_image"
|
||||
imageFile="@assetFile=default.png"
|
||||
UseMips="true"
|
||||
isHDRImage="false"
|
||||
imageType="Albedo" />
|
||||
|
|
@ -157,7 +157,7 @@ new GuiControl(MaterialSelectorOverlay, EditorGuiGroup) {
|
|||
Command = "MaterialSelector.showDeleteDialog();";
|
||||
hovertime = "1000";
|
||||
tooltip = "Delete Material";
|
||||
bitmap = "tools/gui/images/delete";
|
||||
bitmapAsset = "ToolsModule:delete_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -894,7 +894,7 @@ function MaterialSelector::buildStaticFilters( %this )
|
|||
Command = "MaterialSelector_addFilterWindow.setVisible(1); MaterialSelectorOverlay.pushToBack(MaterialSelector_addFilterWindow);";
|
||||
hovertime = "1000";
|
||||
tooltip = "Create New Tag";
|
||||
bitmap = "tools/gui/images/new";
|
||||
bitmapAsset = "ToolsModule:new_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -914,7 +914,7 @@ function MaterialSelector::buildStaticFilters( %this )
|
|||
Command = "MaterialSelector.clearMaterialFilters();";
|
||||
hovertime = "1000";
|
||||
tooltip = "Clear Selected Tag";
|
||||
bitmap = "tools/gui/images/clear-btn";
|
||||
bitmapAsset = "ToolsModule:clear_btn_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -1226,7 +1226,7 @@ function MaterialSelector::buildPreviewArray( %this, %material )
|
|||
position = "7 4";
|
||||
extent = "64 64";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "";
|
||||
bitmapAsset = "";
|
||||
Command = "";
|
||||
text = "Loading...";
|
||||
useStates = false;
|
||||
|
|
@ -1239,7 +1239,7 @@ function MaterialSelector::buildPreviewArray( %this, %material )
|
|||
extent = "64 64";
|
||||
Variable = "";
|
||||
buttonType = "toggleButton";
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
groupNum = "0";
|
||||
text = "";
|
||||
};
|
||||
|
|
@ -1662,7 +1662,7 @@ function MaterialSelector::createNewMaterial( %this )
|
|||
extent = "64 64";
|
||||
Variable = "";
|
||||
buttonType = "toggleButton";
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
groupNum = "0";
|
||||
text = "";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@
|
|||
canSaveDynamicFields = "0";
|
||||
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconAdd.png";
|
||||
bitmapAsset = "ToolsModule:iconAdd_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -122,7 +122,7 @@
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/iconDelete.png";
|
||||
bitmapAsset = "ToolsModule:iconDelete_image";
|
||||
bitmapMode = "Centered";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ new GuiControlProfile (ToolsGuiDefaultProfile)
|
|||
fontColorSEL= EditorSettings.value("Theme/fieldTextSELColor");
|
||||
|
||||
// bitmap information
|
||||
bitmap = "";
|
||||
bitmapAsset = "";
|
||||
bitmapBase = "";
|
||||
textOffset = "0 0";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue