Skip to content

Commit

Permalink
Updated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tentone committed Feb 11, 2018
1 parent 6a9fe1e commit 00d9fb2
Show file tree
Hide file tree
Showing 16 changed files with 5,231 additions and 5,164 deletions.
3,585 changes: 1,803 additions & 1,782 deletions build/nunu.editor.min.js

Large diffs are not rendered by default.

1,585 changes: 797 additions & 788 deletions build/nunu.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/docs/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8686,7 +8686,7 @@
},
{
"file": "..\\..\\source\\core\\objects\\misc\\LensFlare.js",
"line": 183,
"line": 188,
"description": "Add texture to the lensFlare object.",
"itemtype": "method",
"name": "add",
Expand Down Expand Up @@ -8717,7 +8717,7 @@
},
{
"file": "..\\..\\source\\core\\objects\\misc\\LensFlare.js",
"line": 217,
"line": 222,
"description": "Serialize lensflare data to json.",
"itemtype": "method",
"name": "toJSON",
Expand Down Expand Up @@ -8795,7 +8795,7 @@
},
{
"file": "..\\..\\source\\core\\objects\\particle\\ParticleEmitter.js",
"line": 143,
"line": 145,
"description": "Dispose particle emitter.\n\nShould be called when destroying particle emitter.",
"itemtype": "method",
"name": "dispose",
Expand All @@ -8804,7 +8804,7 @@
},
{
"file": "..\\..\\source\\core\\objects\\particle\\ParticleEmitter.js",
"line": 157,
"line": 159,
"description": "Serialize object to JSON.",
"itemtype": "method",
"name": "toJSON",
Expand Down
3,585 changes: 1,803 additions & 1,782 deletions docs/editor/nunu.editor.min.js

Large diffs are not rendered by default.

1,585 changes: 797 additions & 788 deletions docs/editor/nunu.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion source/core/objects/particle/ParticleEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ function ParticleEmitter(group, emitter)
set: function(texture)
{
self.group.texture = texture;
self.group.uniforms.texture.value = texture;
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion source/editor/Interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ Interface.initialize = function()
var mesh = new Mesh(geometry, Editor.defaultMaterial);
Editor.addToScene(mesh);

alert("Reduced from " + vertices + " to " + Math.ceil(vertices * level) + " vertex.");
Editor.alert("Reduced from " + vertices + " to " + Math.ceil(vertices * level) + " vertex.");

}, Editor.filePath + "icons/models/figures.png");

Expand Down
4 changes: 4 additions & 0 deletions source/editor/ui/element/input/ImageChooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ function ImageChooser(parent)
self.setValue(value);
self.onChange(value);
}
else
{
Editor.alert("Only images accepted");
}
}
};

Expand Down
8 changes: 6 additions & 2 deletions source/editor/ui/element/input/TextureChooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,16 @@ function TextureChooser(parent)
//Image
else if(value instanceof Image)
{

self.setTexture(new Texture(value));
}
//Video
else if(value instanceof Video)
{

self.setTexture(new VideoTexture(value));
}
else
{
Editor.alert("Only textures, videos and images accepted");
}
}

Expand Down
6 changes: 3 additions & 3 deletions source/editor/ui/tab/SceneEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ SceneEditor.prototype.update = function()
catch(e)
{
this.setState(SceneEditor.EDITING);
alert("Error testing program\nState update caused an error");
Editor.alert("Error testing program\nState update caused an error");
console.error("nunuStudio: Error updating program state", e);
}

Expand Down Expand Up @@ -1109,7 +1109,7 @@ SceneEditor.prototype.render = function()
catch(e)
{
this.setState(SceneEditor.EDITING);
alert("Error testing program\nRender caused an error");
Editor.alert("Error testing program\nRender caused an error");
console.error("nunuStudio: Error rendering program", e);
}
}
Expand Down Expand Up @@ -1398,7 +1398,7 @@ SceneEditor.prototype.setState = function(state)
catch(e)
{
this.setState(SceneEditor.EDITING);
alert("Error testing program\nInitialization caused an error");
Editor.alert("Error testing program\nInitialization caused an error");
console.error("nunuStudio: Error initializing program", e);
}
//Update interface
Expand Down
6 changes: 3 additions & 3 deletions source/editor/ui/tab/animation/AnimationButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function AnimationButton(parent, editor, animation)

if(value === object)
{
alert("Attribute not found");
Editor.alert("Attribute not found");
}

if(value instanceof THREE.Vector3)
Expand Down Expand Up @@ -90,7 +90,7 @@ function AnimationButton(parent, editor, animation)
else
{
console.warn("nunuStudio: Attribute it no animable", value);
alert("Attribute is not animable");
Editor.alert("Attribute is not animable");
return;
}

Expand All @@ -113,7 +113,7 @@ function AnimationButton(parent, editor, animation)
}
else
{
alert("Unable to delete animation");
Editor.alert("Unable to delete animation");
}

self.editor.createTimeline();
Expand Down
4 changes: 2 additions & 2 deletions source/editor/ui/tab/animation/AnimationKeyframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function AnimationKeyframe(parent, editor, trackEditor, track, index)

if(self.track.times.length === 1)
{
alert("Track needs to have at least one keyframe!");
Editor.alert("Track needs to have at least one keyframe!");
return;
}

Expand Down Expand Up @@ -75,7 +75,7 @@ function AnimationKeyframe(parent, editor, trackEditor, track, index)

if(isNaN(time))
{
alert("Invalid time value!");
Editor.alert("Invalid time value!");
return;
}

Expand Down
4 changes: 2 additions & 2 deletions source/editor/ui/tab/animation/AnimationTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function AnimationTab(parent, closeable, container, index)
{
if(self.mixer == null)
{
alert("No animation found!");
Editor.alert("No animation found!");
return;
}

Expand All @@ -97,7 +97,7 @@ function AnimationTab(parent, closeable, container, index)
{
if(self.mixer == null)
{
alert("No animation playing!");
Editor.alert("No animation playing!");
return;
}

Expand Down
8 changes: 4 additions & 4 deletions source/editor/ui/tab/animation/AnimationTrackButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function AnimationTrackButton(parent, editor, animation, track, trackTimeline)
}
else
{
alert("Unable to delete track");
Editor.alert("Unable to delete track");
}

self.editor.createTimeline();
Expand All @@ -65,7 +65,7 @@ function AnimationTrackButton(parent, editor, animation, track, trackTimeline)
{
track.optimize();

alert("Track optimized");
Editor.alert("Track optimized");

self.trackTimeline.updateKeyframes();
self.editor.createAnimationMixer();
Expand All @@ -77,7 +77,7 @@ function AnimationTrackButton(parent, editor, animation, track, trackTimeline)

if(isNaN(time))
{
alert("Invalid time value");
Editor.alert("Invalid time value");
return;
}

Expand All @@ -94,7 +94,7 @@ function AnimationTrackButton(parent, editor, animation, track, trackTimeline)

if(isNaN(start) || isNaN(end))
{
alert("Invalid time value");
Editor.alert("Invalid time value");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion source/editor/ui/tab/asset/asset/MaterialAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function MaterialAsset(parent)
}
catch(e)
{
alert("Material duplication failed\n" + e.stack);
Editor.alert("Material duplication failed\n" + e.stack);
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion source/editor/ui/tab/asset/asset/TextureAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function TextureAsset(parent)
}
catch(e)
{
alert("Texture duplication failed\n" + e.stack);
Editor.alert("Texture duplication failed\n" + e.stack);
}
}
});
Expand Down

0 comments on commit 00d9fb2

Please sign in to comment.