Commit 7e8291005bcffe78d80ddc6ede0a38dcb1740ea9

Authored by David Guilherme
1 parent 1e7b6fb1
Exists in master

Changes loading screen in webplayer

@@ -29,7 +29,8 @@ var webplayerFiles = [ @@ -29,7 +29,8 @@ var webplayerFiles = [
29 'window.html', 29 'window.html',
30 'player.js', 30 'player.js',
31 'WEBPLAYER.unity3d', 31 'WEBPLAYER.unity3d',
32 - 'vendors/**/*' 32 + 'vendors/**/*',
  33 + 'TemplateData/*'
33 ]; 34 ];
34 35
35 gulp.task('chrome', function() { 36 gulp.task('chrome', function() {
webgl/window.html
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>VLibras Plugin</title> 6 <title>VLibras Plugin</title>
7 <link rel="stylesheet" href="TemplateData/style.css"> 7 <link rel="stylesheet" href="TemplateData/style.css">
8 - <link rel="shortcut icon" href="TemplateData/favicon.ico?v=2" /> 8 + <link rel="shortcut icon" href="TemplateData/favicon.png" />
9 <script src="TemplateData/UnityProgress.js"></script> 9 <script src="TemplateData/UnityProgress.js"></script>
10 10
11 <script src="vendors/qdclient/qdclient.js"></script> 11 <script src="vendors/qdclient/qdclient.js"></script>
webplayer/TemplateData/favicon.png 0 → 100644

18.4 KB

webplayer/TemplateData/fullbar.png 0 → 100644

1.16 KB

webplayer/TemplateData/loadingbar.png 0 → 100644

2.78 KB

webplayer/TemplateData/progresslogo.png 0 → 100644

20.7 KB

webplayer/player.js
1 -var Player = new UnityObject2();  
2 -Player.initPlugin(document.getElementById('player'), 'WEBPLAYER.unity3d'); 1 +(function(window, UnityObject2) {
  2 + var params = {
  3 + logoimage: 'TemplateData/progresslogo.png',
  4 + progressbarimage: 'TemplateData/fullbar.png',
  5 + progressframeimage: 'TemplateData/loadingbar.png'
  6 + };
3 7
4 -function SendMessage(object, method, params) {  
5 - console.log('SendMessage trigger');  
6 - Player.getUnity().SendMessage(object, method, params);  
7 -}  
8 \ No newline at end of file 8 \ No newline at end of file
  9 + var Player = new UnityObject2({ params: params });
  10 + Player.initPlugin(document.getElementById('player'), 'WEBPLAYER.unity3d');
  11 +
  12 + window.SendMessage = function(object, method, params) {
  13 + Player.getUnity().SendMessage(object, method, params);
  14 + };
  15 +
  16 +})(window, UnityObject2);
9 \ No newline at end of file 17 \ No newline at end of file
webplayer/window.html
@@ -2,9 +2,9 @@ @@ -2,9 +2,9 @@
2 <html lang="en-us"> 2 <html lang="en-us">
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 - <meta http-equiv="Content-Type" content="text/html; charset=utf-8">  
6 <title>VLibras Plugin</title> 5 <title>VLibras Plugin</title>
7 6
  7 + <link rel="shortcut icon" href="TemplateData/favicon.png" />
8 <style type="text/css"> 8 <style type="text/css">
9 html, body, #player { 9 html, body, #player {
10 width: 100%; 10 width: 100%;