Rename tree folder to navigator.
|
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 213 B |
|
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 214 B |
|
Before Width: | Height: | Size: 410 B After Width: | Height: | Size: 410 B |
|
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 297 B |
|
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 503 B After Width: | Height: | Size: 503 B |
|
Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 380 B |
|
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 781 B |
|
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
|
Before Width: | Height: | Size: 611 B After Width: | Height: | Size: 611 B |
|
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 366 B |
@ -208,7 +208,7 @@
|
||||
|
||||
<h3 id="loading_models_missing_files">Missing files</h3>
|
||||
<p>
|
||||
Sometimes you see missing files in the tree (<img class="inline" src="../assets/images/tree/missing_files.svg"/>). It means that your model
|
||||
Sometimes you see missing files in the tree (<img class="inline" src="../assets/images/navigator/missing_files.svg"/>). It means that your model
|
||||
refers to another files, but they are not selected to import. To solve the issue you have to import the model again together with the referenced
|
||||
files, or just import the missing files on their own.
|
||||
</p>
|
||||
|
||||
@ -40,9 +40,9 @@ OV.MeshData = class
|
||||
{
|
||||
this.visible = visible;
|
||||
if (this.visible) {
|
||||
this.showHideButton.SetImage ('assets/images/tree/visible.svg');
|
||||
this.showHideButton.SetImage ('assets/images/navigator/visible.svg');
|
||||
} else {
|
||||
this.showHideButton.SetImage ('assets/images/tree/hidden.svg');
|
||||
this.showHideButton.SetImage ('assets/images/navigator/hidden.svg');
|
||||
}
|
||||
}
|
||||
|
||||
@ -55,13 +55,13 @@ OV.MeshData = class
|
||||
{
|
||||
this.menuItem = new OV.TreeViewButtonItem (name);
|
||||
|
||||
let fitToWindowButton = new OV.TreeViewButton ('assets/images/tree/fit_tree.svg');
|
||||
let fitToWindowButton = new OV.TreeViewButton ('assets/images/navigator/fit_navigator.svg');
|
||||
fitToWindowButton.OnClick (() => {
|
||||
callbacks.onFitToWindow (this.originalIndex);
|
||||
});
|
||||
this.menuItem.AddButton (fitToWindowButton);
|
||||
|
||||
this.showHideButton = new OV.TreeViewButton ('assets/images/tree/visible.svg');
|
||||
this.showHideButton = new OV.TreeViewButton ('assets/images/navigator/visible.svg');
|
||||
this.showHideButton.OnClick ((ev) => {
|
||||
if (ev.ctrlKey || ev.metaKey) {
|
||||
callbacks.onIsolate (this.originalIndex);
|
||||
|
||||
@ -94,7 +94,7 @@ OV.NavigatorInfoPanel = class
|
||||
{
|
||||
let button = $('<div>').addClass ('ov_navigator_info_button').appendTo (parentDiv);
|
||||
$('<div>').addClass ('ov_navigator_info_button_text').html (buttonText).appendTo (button);
|
||||
$('<img>').addClass ('ov_navigator_info_button_icon').attr ('src', 'assets/images/tree/arrow_right.svg').appendTo (button);
|
||||
$('<img>').addClass ('ov_navigator_info_button_icon').attr ('src', 'assets/images/navigator/arrow_right.svg').appendTo (button);
|
||||
button.click (() => {
|
||||
onClick (button);
|
||||
});
|
||||
@ -147,7 +147,7 @@ OV.Navigator = class
|
||||
let usedFiles = importResult.usedFiles;
|
||||
let missingFiles = importResult.missingFiles;
|
||||
|
||||
let filesItem = new OV.TreeViewGroupItem ('Files', 'assets/images/tree/files.svg');
|
||||
let filesItem = new OV.TreeViewGroupItem ('Files', 'assets/images/navigator/files.svg');
|
||||
this.treeView.AddItem (filesItem);
|
||||
for (let i = 0; i < usedFiles.length; i++) {
|
||||
let file = usedFiles[i];
|
||||
@ -156,12 +156,12 @@ OV.Navigator = class
|
||||
}
|
||||
|
||||
if (missingFiles.length > 0) {
|
||||
let missingFilesItem = new OV.TreeViewGroupItem ('Missing Files', 'assets/images/tree/missing_files.svg');
|
||||
let missingFilesItem = new OV.TreeViewGroupItem ('Missing Files', 'assets/images/navigator/missing_files.svg');
|
||||
this.treeView.AddItem (missingFilesItem);
|
||||
for (let i = 0; i < missingFiles.length; i++) {
|
||||
let file = missingFiles[i];
|
||||
let item = new OV.TreeViewButtonItem (file);
|
||||
let browseButton = new OV.TreeViewButton ('assets/images/tree/open.svg');
|
||||
let browseButton = new OV.TreeViewButton ('assets/images/navigator/open.svg');
|
||||
browseButton.OnClick (() => {
|
||||
this.callbacks.openFileBrowserDialog ();
|
||||
});
|
||||
@ -170,7 +170,7 @@ OV.Navigator = class
|
||||
}
|
||||
}
|
||||
|
||||
let materialsItem = new OV.TreeViewGroupItem ('Materials', 'assets/images/tree/materials.svg');
|
||||
let materialsItem = new OV.TreeViewGroupItem ('Materials', 'assets/images/navigator/materials.svg');
|
||||
this.treeView.AddItem (materialsItem);
|
||||
for (let i = 0; i < model.MaterialCount (); i++) {
|
||||
let material = model.GetMaterial (i);
|
||||
@ -185,7 +185,7 @@ OV.Navigator = class
|
||||
materialsItem.AddChild (materialItem);
|
||||
}
|
||||
|
||||
let meshesItem = new OV.TreeViewGroupItem ('Meshes', 'assets/images/tree/meshes.svg');
|
||||
let meshesItem = new OV.TreeViewGroupItem ('Meshes', 'assets/images/navigator/meshes.svg');
|
||||
this.treeView.AddItem (meshesItem);
|
||||
meshesItem.ShowChildren (true, null);
|
||||
for (let i = 0; i < model.MeshCount (); i++) {
|
||||
|
||||
@ -147,8 +147,8 @@ OV.TreeViewGroupItem = class extends OV.TreeViewItem
|
||||
this.childrenDiv = null;
|
||||
this.showChildren = false;
|
||||
this.openCloseButton = null;
|
||||
this.openButtonPath = 'assets/images/tree/arrow_down.svg';
|
||||
this.closeButtonPath = 'assets/images/tree/arrow_up.svg';
|
||||
this.openButtonPath = 'assets/images/navigator/arrow_down.svg';
|
||||
this.closeButtonPath = 'assets/images/navigator/arrow_up.svg';
|
||||
this.animated = true;
|
||||
this.openCloseHandler = null;
|
||||
}
|
||||
|
||||