diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-02-14 15:27:29 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-02-14 15:27:29 -0500 |
| commit | 280185245d19c7c9c02e5c73601e0e54009c6c8e (patch) | |
| tree | 410ef1ff865ec412dfcee96312b30461c3241834 /public/unity/TemplateData | |
| parent | d16550df3d370ce2f2859d72a79c36e8ef0b4a72 (diff) | |
| download | snug-cup-280185245d19c7c9c02e5c73601e0e54009c6c8e.tar.gz snug-cup-280185245d19c7c9c02e5c73601e0e54009c6c8e.tar.bz2 snug-cup-280185245d19c7c9c02e5c73601e0e54009c6c8e.zip | |
Added unity project
Diffstat (limited to 'public/unity/TemplateData')
| -rw-r--r-- | public/unity/TemplateData/UnityProgress.js | 24 | ||||
| -rw-r--r-- | public/unity/TemplateData/favicon.ico | bin | 0 -> 13275 bytes | |||
| -rw-r--r-- | public/unity/TemplateData/fullscreen.png | bin | 0 -> 345 bytes | |||
| -rw-r--r-- | public/unity/TemplateData/progressEmpty.Dark.png | bin | 0 -> 155 bytes | |||
| -rw-r--r-- | public/unity/TemplateData/progressEmpty.Light.png | bin | 0 -> 159 bytes | |||
| -rw-r--r-- | public/unity/TemplateData/progressFull.Dark.png | bin | 0 -> 137 bytes | |||
| -rw-r--r-- | public/unity/TemplateData/progressFull.Light.png | bin | 0 -> 142 bytes | |||
| -rw-r--r-- | public/unity/TemplateData/progressLogo.Dark.png | bin | 0 -> 2343 bytes | |||
| -rw-r--r-- | public/unity/TemplateData/progressLogo.Light.png | bin | 0 -> 2259 bytes | |||
| -rw-r--r-- | public/unity/TemplateData/style.css | 18 | ||||
| -rw-r--r-- | public/unity/TemplateData/webgl-logo.png | bin | 0 -> 3587 bytes |
11 files changed, 42 insertions, 0 deletions
diff --git a/public/unity/TemplateData/UnityProgress.js b/public/unity/TemplateData/UnityProgress.js new file mode 100644 index 0000000..ceb0543 --- /dev/null +++ b/public/unity/TemplateData/UnityProgress.js @@ -0,0 +1,24 @@ +function UnityProgress(unityInstance, progress) { + if (!unityInstance.Module) + return; + if (!unityInstance.logo) { + unityInstance.logo = document.createElement("div"); + unityInstance.logo.className = "logo " + unityInstance.Module.splashScreenStyle; + unityInstance.container.appendChild(unityInstance.logo); + } + if (!unityInstance.progress) { + unityInstance.progress = document.createElement("div"); + unityInstance.progress.className = "progress " + unityInstance.Module.splashScreenStyle; + unityInstance.progress.empty = document.createElement("div"); + unityInstance.progress.empty.className = "empty"; + unityInstance.progress.appendChild(unityInstance.progress.empty); + unityInstance.progress.full = document.createElement("div"); + unityInstance.progress.full.className = "full"; + unityInstance.progress.appendChild(unityInstance.progress.full); + unityInstance.container.appendChild(unityInstance.progress); + } + unityInstance.progress.full.style.width = (100 * progress) + "%"; + unityInstance.progress.empty.style.width = (100 * (1 - progress)) + "%"; + if (progress == 1) + unityInstance.logo.style.display = unityInstance.progress.style.display = "none"; +}
\ No newline at end of file diff --git a/public/unity/TemplateData/favicon.ico b/public/unity/TemplateData/favicon.ico Binary files differnew file mode 100644 index 0000000..dd6bf7e --- /dev/null +++ b/public/unity/TemplateData/favicon.ico diff --git a/public/unity/TemplateData/fullscreen.png b/public/unity/TemplateData/fullscreen.png Binary files differnew file mode 100644 index 0000000..22cfc35 --- /dev/null +++ b/public/unity/TemplateData/fullscreen.png diff --git a/public/unity/TemplateData/progressEmpty.Dark.png b/public/unity/TemplateData/progressEmpty.Dark.png Binary files differnew file mode 100644 index 0000000..eff4730 --- /dev/null +++ b/public/unity/TemplateData/progressEmpty.Dark.png diff --git a/public/unity/TemplateData/progressEmpty.Light.png b/public/unity/TemplateData/progressEmpty.Light.png Binary files differnew file mode 100644 index 0000000..b428ec4 --- /dev/null +++ b/public/unity/TemplateData/progressEmpty.Light.png diff --git a/public/unity/TemplateData/progressFull.Dark.png b/public/unity/TemplateData/progressFull.Dark.png Binary files differnew file mode 100644 index 0000000..3e5c8a0 --- /dev/null +++ b/public/unity/TemplateData/progressFull.Dark.png diff --git a/public/unity/TemplateData/progressFull.Light.png b/public/unity/TemplateData/progressFull.Light.png Binary files differnew file mode 100644 index 0000000..0064427 --- /dev/null +++ b/public/unity/TemplateData/progressFull.Light.png diff --git a/public/unity/TemplateData/progressLogo.Dark.png b/public/unity/TemplateData/progressLogo.Dark.png Binary files differnew file mode 100644 index 0000000..c15fb23 --- /dev/null +++ b/public/unity/TemplateData/progressLogo.Dark.png diff --git a/public/unity/TemplateData/progressLogo.Light.png b/public/unity/TemplateData/progressLogo.Light.png Binary files differnew file mode 100644 index 0000000..cdd4f74 --- /dev/null +++ b/public/unity/TemplateData/progressLogo.Light.png diff --git a/public/unity/TemplateData/style.css b/public/unity/TemplateData/style.css new file mode 100644 index 0000000..1283de4 --- /dev/null +++ b/public/unity/TemplateData/style.css @@ -0,0 +1,18 @@ +.webgl-content * {border: 0; margin: 0; padding: 0} +.webgl-content {position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);} + +.webgl-content .logo, .progress {position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);} +.webgl-content .logo {background: url('progressLogo.Light.png') no-repeat center / contain; width: 154px; height: 130px;} +.webgl-content .progress {height: 18px; width: 141px; margin-top: 90px;} +.webgl-content .progress .empty {background: url('progressEmpty.Light.png') no-repeat right / cover; float: right; width: 100%; height: 100%; display: inline-block;} +.webgl-content .progress .full {background: url('progressFull.Light.png') no-repeat left / cover; float: left; width: 0%; height: 100%; display: inline-block;} + +.webgl-content .logo.Dark {background-image: url('progressLogo.Dark.png');} +.webgl-content .progress.Dark .empty {background-image: url('progressEmpty.Dark.png');} +.webgl-content .progress.Dark .full {background-image: url('progressFull.Dark.png');} + +.webgl-content .footer {margin-top: 5px; height: 38px; line-height: 38px; font-family: Helvetica, Verdana, Arial, sans-serif; font-size: 18px;} +.webgl-content .footer .webgl-logo, .title, .fullscreen {height: 100%; display: inline-block; background: transparent center no-repeat;} +.webgl-content .footer .webgl-logo {background-image: url('webgl-logo.png'); width: 204px; float: left;} +.webgl-content .footer .title {margin-right: 10px; float: right;} +.webgl-content .footer .fullscreen {background-image: url('fullscreen.png'); width: 38px; float: right;} diff --git a/public/unity/TemplateData/webgl-logo.png b/public/unity/TemplateData/webgl-logo.png Binary files differnew file mode 100644 index 0000000..8af9ba6 --- /dev/null +++ b/public/unity/TemplateData/webgl-logo.png |
