Browse Source

Merge pull request #842 from AtomicGameEngine/TSH-ATOMIC-841

Fix for Material and Scene dialogs
JoshEngebretson 9 years ago
parent
commit
dfb4dca500

+ 9 - 0
Resources/EditorData/AtomicEditor/editor/ui/resourcecreateresource.tb.txt

@@ -0,0 +1,9 @@
+TBLayout: axis: y, distribution: gravity, position: left
+	TBLayout:
+		TBTextField: text: "Name:"
+		TBEditField: id: component_name, autofocus: 1
+			lp: min-width: 180
+	TBSeparator: gravity: left right, skin: AESeparator
+	TBLayout:
+		TBButton: text: Create, id: create
+		TBButton: text: Cancel, id: cancel

+ 2 - 2
Script/AtomicEditor/ui/modal/UIResourceOps.ts

@@ -310,7 +310,7 @@ export class CreateScene extends ModalWindow {
         super();
         super();
 
 
         this.resourcePath = resourcePath;
         this.resourcePath = resourcePath;
-        this.init("New Scene", "AtomicEditor/editor/ui/resourcecreatecomponent.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");
     }
     }
 
 
@@ -362,7 +362,7 @@ export class CreateMaterial extends ModalWindow {
         super();
         super();
 
 
         this.resourcePath = resourcePath;
         this.resourcePath = resourcePath;
-        this.init("New Material", "AtomicEditor/editor/ui/resourcecreatecomponent.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");
     }
     }