mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14: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,6 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
scriptFile="@assetFile=DatablockEditorTreeWindow.ed.gui"
|
||||
GUIFile="@assetFile=DatablockEditorTreeWindow.ed.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<GUIAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="DatablockEditorCreatePrompt,EditorGuiGroup"
|
||||
scriptFile="@assetFile=DatablockEditorCreatePrompt.ed.gui"
|
||||
GUIFile="@assetFile=DatablockEditorCreatePrompt.ed.gui"
|
||||
VersionId="1" />
|
||||
|
|
@ -166,7 +166,7 @@ $guiContent = new GuiControl() {
|
|||
active = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/save-icon";
|
||||
bitmapAsset = "ToolsModule:save_icon_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -186,7 +186,7 @@ $guiContent = new GuiControl() {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/save-as";
|
||||
bitmapAsset = "ToolsModule:save_as_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ $guiContent = new GuiControl() {
|
|||
};
|
||||
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/clear-icon";
|
||||
bitmapAsset = "ToolsModule:clear_icon_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -265,7 +265,7 @@ $guiContent = new GuiControl() {
|
|||
};
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/delete";
|
||||
bitmapAsset = "ToolsModule:delete_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -286,7 +286,7 @@ $guiContent = new GuiControl() {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/gui/images/new";
|
||||
bitmapAsset = "ToolsModule:new_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ function DatablockEditorPlugin::onWorldEditorStartup( %this )
|
|||
|
||||
// Add ourselves to the ToolsToolbar
|
||||
%tooltip = "Datablock Editor (" @ %accel @ ")";
|
||||
EditorGui.addToToolsToolbar( "DatablockEditorPlugin", "DatablockEditorPalette", expandFilename("tools/worldEditor/images/toolbar/datablock-editor"), %tooltip );
|
||||
EditorGui.addToToolsToolbar( "DatablockEditorPlugin", "DatablockEditorPalette", "ToolsModule:datablock_editor_n_image", %tooltip );
|
||||
|
||||
//connect editor windows
|
||||
GuiWindowCtrl::Attach( DatablockEditorInspectorWindow, DatablockEditorTreeWindow);
|
||||
|
|
@ -676,13 +676,16 @@ function DatablockEditorPlugin::createDatablock(%this)
|
|||
//---------------------------------------------------------------------------------------------
|
||||
function DatablockEditorPlugin::pickDatablockPath(%this)
|
||||
{
|
||||
SelectAssetPath.showDialog(AssetBrowser.dirHandler.currentAddress, "DatablockEditorPlugin.pickedNewDBPath", "Select New Datablock Path");
|
||||
SelectAssetPathWindow.selectWindow();
|
||||
AssetBrowser_SelectModule.showDialog("DatablockEditorPlugin.pickedNewDBTargetModule");
|
||||
//SelectAssetPath.showDialog(AssetBrowser.dirHandler.currentAddress, "DatablockEditorPlugin.pickedNewDBPath", "Select New Datablock Path");
|
||||
AssetBrowser_SelectModuleWindow.selectWindow();
|
||||
}
|
||||
|
||||
function DatablockEditorPlugin::pickedNewDBPath(%this, %path)
|
||||
function DatablockEditorPlugin::pickedNewDBTargetModule(%this, %module)
|
||||
{
|
||||
$DATABLOCK_EDITOR_DEFAULT_FILENAME = %path @ "/managedDatablocks." @ $TorqueScriptFileExtension;
|
||||
%moduleDef = ModuleDatabase.findModule(%module);
|
||||
|
||||
$DATABLOCK_EDITOR_DEFAULT_FILENAME = %moduleDef.ModulePath @ "/scripts/managedData/managedDatablocks." @ $TorqueScriptFileExtension;
|
||||
DatablockEditorPlugin.createDatablock();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue