Commit 7e8291005bcffe78d80ddc6ede0a38dcb1740ea9
1 parent
1e7b6fb1
Exists in
master
Changes loading screen in webplayer
Showing
8 changed files
with
18 additions
and
9 deletions
Show diff stats
Gulpfile.js
webgl/window.html
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
6 | 6 | <title>VLibras Plugin</title> |
7 | 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 | 9 | <script src="TemplateData/UnityProgress.js"></script> |
10 | 10 | |
11 | 11 | <script src="vendors/qdclient/qdclient.js"></script> | ... | ... |
18.4 KB
1.16 KB
2.78 KB
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 | 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 | 17 | \ No newline at end of file | ... | ... |
webplayer/window.html
... | ... | @@ -2,9 +2,9 @@ |
2 | 2 | <html lang="en-us"> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
6 | 5 | <title>VLibras Plugin</title> |
7 | 6 | |
7 | + <link rel="shortcut icon" href="TemplateData/favicon.png" /> | |
8 | 8 | <style type="text/css"> |
9 | 9 | html, body, #player { |
10 | 10 | width: 100%; | ... | ... |