msDestiny14 4 lat temu
rodzic
commit
1039d186e9

+ 1 - 5
guiEditor/src/components/propertyTab/propertyTabComponent.tsx

@@ -241,11 +241,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
     render() {
         if (this.state.currentNode) {
             return (
-                <div id="propertyTab"                                 onFocus={() => {(this.props.globalState.blockKeyboardEvents = true); console.log("blocked");}}
-                onBlur={(evt) => {
-                    this.props.globalState.blockKeyboardEvents = false;
-                    console.log("not blocked");
-                }}>
+                <div id="propertyTab">
                     <div id="header" >
                         <img id="logo" src="https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" />
                         <div id="title">GUI EDITOR</div>

+ 2 - 2
guiEditor/src/guiNodeTools.ts

@@ -47,14 +47,14 @@ export class GUINodeTools {
                 element.text = "My Text";
                 return element;
             case "ImageButton":
-                element = Button.CreateImageButton("Button", "Click Me", "textures/grass.png");
+                element = Button.CreateImageButton("Button", "Click Me", "https://playground.babylonjs.com/textures/grass.png");
                 break;
             case "VirtualKeyboard":
                 element = new VirtualKeyboard();
                 element.addKeysRow(["1","2", "3","\u2190"]);
                 break;
             case "Image": 
-                element = new Image("Image", "https://i.imgur.com/ntIgFT6.jpg");
+                element = new Image("Image", "https://playground.babylonjs.com/textures/grass.png");
                 break;
             case "InputText":
                 element = new InputText();

+ 0 - 7
guiEditor/src/workbenchEditor.tsx

@@ -64,13 +64,6 @@ export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEd
             (evt) => {
                 if ((evt.keyCode === 46 || evt.keyCode === 8) && !this.props.globalState.blockKeyboardEvents) {
                     // Delete
-                    /*let selectedItems = this._workbenchCanvas.selectedGuiNodes;
-
-                    for (var selectedItem of selectedItems) {
-                        selectedItem.dispose();
-                    }
-                    this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
-                    return;*/
                 }
 
                 if (!evt.ctrlKey || this.props.globalState.blockKeyboardEvents) {