|
@@ -93,7 +93,6 @@ export class CreateFolder extends ModalWindow {
|
|
|
this.resourcePath = resourcePath;
|
|
this.resourcePath = resourcePath;
|
|
|
this.init("New Folder", "AtomicEditor/editor/ui/resourcenewfolder.tb.txt");
|
|
this.init("New Folder", "AtomicEditor/editor/ui/resourcenewfolder.tb.txt");
|
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("folder_name");
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("folder_name");
|
|
|
- this.nameField.setFocus();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
|
|
handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
|
|
@@ -143,7 +142,6 @@ export class CreateComponent extends ModalWindow {
|
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("component_name");
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("component_name");
|
|
|
this.templateField = <Atomic.UISelectDropdown>this.getWidget("template_list");
|
|
this.templateField = <Atomic.UISelectDropdown>this.getWidget("template_list");
|
|
|
this.loadTemplatesList();
|
|
this.loadTemplatesList();
|
|
|
- this.nameField.setFocus();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -230,7 +228,6 @@ export class CreateScript extends ModalWindow {
|
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("script_name");
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("script_name");
|
|
|
this.templateField = <Atomic.UISelectDropdown>this.getWidget("template_list");
|
|
this.templateField = <Atomic.UISelectDropdown>this.getWidget("template_list");
|
|
|
this.loadTemplatesList();
|
|
this.loadTemplatesList();
|
|
|
- this.nameField.setFocus();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -315,7 +312,6 @@ export class CreateScene extends ModalWindow {
|
|
|
this.resourcePath = resourcePath;
|
|
this.resourcePath = resourcePath;
|
|
|
this.init("New Scene", "AtomicEditor/editor/ui/resourcecreateresource.tb.txt");
|
|
this.init("New Scene", "AtomicEditor/editor/ui/resourcecreateresource.tb.txt");
|
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("component_name");
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("component_name");
|
|
|
- this.nameField.setFocus();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
|
|
handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
|
|
@@ -368,7 +364,6 @@ export class CreateMaterial extends ModalWindow {
|
|
|
this.resourcePath = resourcePath;
|
|
this.resourcePath = resourcePath;
|
|
|
this.init("New Material", "AtomicEditor/editor/ui/resourcecreateresource.tb.txt");
|
|
this.init("New Material", "AtomicEditor/editor/ui/resourcecreateresource.tb.txt");
|
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("component_name");
|
|
this.nameField = <Atomic.UIEditField>this.getWidget("component_name");
|
|
|
- this.nameField.setFocus();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
|
|
handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
|