-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed editor copy paste inside panels and added examples
- Loading branch information
Showing
21 changed files
with
424 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title></title> | ||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/> | ||
</head> | ||
|
||
<body onload="initialize();" onresize="resize();" oncontextmenu="return false;"> | ||
<script type="text/javascript" src="../../build/nunu.min.js"></script> | ||
<script type="text/javascript"> | ||
var app; | ||
|
||
function initialize() | ||
{ | ||
app = new NunuApp(); | ||
app.loadProgram("fps.isp"); | ||
app.run(); | ||
|
||
if(!app.program.vr || !Nunu.webvrAvailable()) | ||
{ | ||
var button = document.getElementById("vr_button"); | ||
button.style.visibility = "hidden"; | ||
} | ||
} | ||
|
||
function resize() | ||
{ | ||
app.resize(); | ||
} | ||
|
||
function toggleFullscreen() | ||
{ | ||
if(Nunu.fullscreen === true) | ||
{ | ||
Nunu.setFullscreen(false); | ||
app.resize(); | ||
} | ||
else | ||
{ | ||
Nunu.setFullscreen(true); | ||
app.resize(); | ||
} | ||
} | ||
|
||
var vr = true; | ||
function toggleVR() | ||
{ | ||
if(app.vr_effect !== null) | ||
{ | ||
app.vr_effect.setFullScreen(vr); | ||
vr = !vr; | ||
} | ||
} | ||
</script> | ||
<div id="fullscreen_button" onclick="toggleFullscreen();" style="position:absolute; z-index: 10000; right:30px; bottom:30px"> | ||
<img style="position:absolute; cursor:pointer; opacity:0.4" width=25 height=25 src="fullscreen.png" onmouseenter="this.style.opacity = 1.0;" onmouseleave="this.style.opacity=0.4;"></img> | ||
</div> | ||
<div id = "vr_button" onclick="toggleVR();" style="position:absolute; z-index: 10000; right:70px; bottom:30px"> | ||
<img style="position:absolute; cursor:pointer; opacity:0.4" width=25 height=25 src="vr.png" onmouseenter="this.style.opacity = 1.0;" onmouseleave="this.style.opacity=0.4;"></img> | ||
</div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title></title> | ||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/> | ||
</head> | ||
|
||
<body onload="initialize();" onresize="resize();" oncontextmenu="return false;"> | ||
<script type="text/javascript" src="../../build/nunu.min.js"></script> | ||
<script type="text/javascript"> | ||
var app; | ||
|
||
function initialize() | ||
{ | ||
app = new NunuApp(); | ||
app.loadProgram("pong.isp"); | ||
app.run(); | ||
|
||
if(!app.program.vr || !Nunu.webvrAvailable()) | ||
{ | ||
var button = document.getElementById("vr_button"); | ||
button.style.visibility = "hidden"; | ||
} | ||
} | ||
|
||
function resize() | ||
{ | ||
app.resize(); | ||
} | ||
|
||
function toggleFullscreen() | ||
{ | ||
if(Nunu.fullscreen === true) | ||
{ | ||
Nunu.setFullscreen(false); | ||
app.resize(); | ||
} | ||
else | ||
{ | ||
Nunu.setFullscreen(true); | ||
app.resize(); | ||
} | ||
} | ||
|
||
var vr = true; | ||
function toggleVR() | ||
{ | ||
if(app.vr_effect !== null) | ||
{ | ||
app.vr_effect.setFullScreen(vr); | ||
vr = !vr; | ||
} | ||
} | ||
</script> | ||
<div id="fullscreen_button" onclick="toggleFullscreen();" style="position:absolute; z-index: 10000; right:30px; bottom:30px"> | ||
<img style="position:absolute; cursor:pointer; opacity:0.4" width=25 height=25 src="fullscreen.png" onmouseenter="this.style.opacity = 1.0;" onmouseleave="this.style.opacity=0.4;"></img> | ||
</div> | ||
<div id = "vr_button" onclick="toggleVR();" style="position:absolute; z-index: 10000; right:70px; bottom:30px"> | ||
<img style="position:absolute; cursor:pointer; opacity:0.4" width=25 height=25 src="vr.png" onmouseenter="this.style.opacity = 1.0;" onmouseleave="this.style.opacity=0.4;"></img> | ||
</div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title></title> | ||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/> | ||
</head> | ||
|
||
<body onload="initialize();" onresize="resize();" oncontextmenu="return false;"> | ||
<script type="text/javascript" src="../../build/nunu.min.js"></script> | ||
<script type="text/javascript"> | ||
var app; | ||
|
||
function initialize() | ||
{ | ||
app = new NunuApp(); | ||
app.loadProgram("spine.isp"); | ||
app.run(); | ||
|
||
if(!app.program.vr || !Nunu.webvrAvailable()) | ||
{ | ||
var button = document.getElementById("vr_button"); | ||
button.style.visibility = "hidden"; | ||
} | ||
} | ||
|
||
function resize() | ||
{ | ||
app.resize(); | ||
} | ||
|
||
function toggleFullscreen() | ||
{ | ||
if(Nunu.fullscreen === true) | ||
{ | ||
Nunu.setFullscreen(false); | ||
app.resize(); | ||
} | ||
else | ||
{ | ||
Nunu.setFullscreen(true); | ||
app.resize(); | ||
} | ||
} | ||
|
||
var vr = true; | ||
function toggleVR() | ||
{ | ||
if(app.vr_effect !== null) | ||
{ | ||
app.vr_effect.setFullScreen(vr); | ||
vr = !vr; | ||
} | ||
} | ||
</script> | ||
<div id="fullscreen_button" onclick="toggleFullscreen();" style="position:absolute; z-index: 10000; right:30px; bottom:30px"> | ||
<img style="position:absolute; cursor:pointer; opacity:0.4" width=25 height=25 src="fullscreen.png" onmouseenter="this.style.opacity = 1.0;" onmouseleave="this.style.opacity=0.4;"></img> | ||
</div> | ||
<div id = "vr_button" onclick="toggleVR();" style="position:absolute; z-index: 10000; right:70px; bottom:30px"> | ||
<img style="position:absolute; cursor:pointer; opacity:0.4" width=25 height=25 src="vr.png" onmouseenter="this.style.opacity = 1.0;" onmouseleave="this.style.opacity=0.4;"></img> | ||
</div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.