Renamed meta elements
Fixed broken macOS glyphs
This commit is contained in:
parent
757158d76f
commit
e130226a92
@ -13,6 +13,8 @@ Introduced breaking meta element name changes.
|
||||
- `dosee:startexe` → `dosee:run:filename`
|
||||
- `dosee:utils` → `dosee:utilities`
|
||||
|
||||
* Fixed glyph display issues on macOS
|
||||
|
||||
### v1.20
|
||||
|
||||
- Now requires [npm](https://www.npmjs.com/get-npm) or [Docker](https://www.docker.com/products/docker-desktop) for installation as the installation scripts have been removed.
|
||||
|
@ -561,8 +561,21 @@ window.Module = null
|
||||
function loadBranding() {
|
||||
if (!game_data || splash.failed_loading) return null
|
||||
if (options.waitAfterDownloading) {
|
||||
return new Promise(function(resolve) {
|
||||
splash.setTitle(`🖰 click to start`)
|
||||
return new Promise(resolve => {
|
||||
let title = `🖰 click to start`
|
||||
// update title based on the browser platform
|
||||
switch (navigator.platform.slice(0, 3).toLowerCase()) {
|
||||
case `mac`: // macOS default font doesn't display the two-button-mouse
|
||||
title = `click to start`
|
||||
break
|
||||
case `and`: // android
|
||||
case `ipa`: // ipad
|
||||
case `iph`: // iphone
|
||||
case `ipo`: // ipod
|
||||
title = `tap to start`
|
||||
break
|
||||
}
|
||||
splash.setTitle(`${title}`)
|
||||
splash.spinning = false
|
||||
// stashes these event listeners so that we can remove them after
|
||||
window.addEventListener(
|
||||
@ -583,8 +596,7 @@ window.Module = null
|
||||
canvas.removeEventListener(`click`, c)
|
||||
splash.splashElt.removeEventListener(`click`, c)
|
||||
|
||||
// Don't let arrow, pg up/down, home, end affect page position
|
||||
blockSomeKeys()
|
||||
blockNavigationKeys()
|
||||
setupFullScreen()
|
||||
|
||||
// Emscripten doesn't use the proper prefixed functions for fullscreen requests,
|
||||
@ -972,14 +984,13 @@ window.Module = null
|
||||
}
|
||||
|
||||
this.requestFullScreen = function() {
|
||||
console.log(`FULLSCREEN REQUEST`)
|
||||
Module.requestFullScreen(1, 0)
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevents page navigation keys such as page up/page down from
|
||||
* moving the page while the user is playing.
|
||||
*/
|
||||
function blockSomeKeys() {
|
||||
// Don't allow the arrow keys, PgUp/PgDn, Home or End keys to affect the page position
|
||||
// TODO: release these when STOP has been hit
|
||||
function blockNavigationKeys() {
|
||||
function keypress(e) {
|
||||
if (e.which >= 33 && e.which <= 40) {
|
||||
e.preventDefault()
|
||||
|
3
index.js
3
index.js
@ -47,7 +47,8 @@ function resetTabs(defaultTab) {
|
||||
const archive = `${DOSee.getMetaContent(`dosee:zip:path`)}`
|
||||
const exe = `${DOSee.getMetaContent(`dosee:run:filename`)}`
|
||||
if (exe.length > 0) {
|
||||
h2.innerText = `${exe} ⭠ ${archive}`
|
||||
// char-code 8592 is a leftward arrow
|
||||
h2.innerText = `${exe} ${String.fromCharCode(8592)} ${archive}`
|
||||
} else h2.innerText = `${archive}`
|
||||
}
|
||||
console.log(`Loaded index.js`)
|
||||
|
@ -24,5 +24,5 @@
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/bengarrett/DOSee.git"
|
||||
},
|
||||
"version": "1.20.0"
|
||||
"version": "1.30.0"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user