Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
bugfix: text disappears in bugfix mode aframevr/aframe#5260
Browse files Browse the repository at this point in the history
  • Loading branch information
coderofsalvation committed Jan 31, 2024
1 parent 5ddb7aa commit 1645d53
Show file tree
Hide file tree
Showing 10 changed files with 23,929 additions and 12 deletions.
38 changes: 35 additions & 3 deletions dist/xrfragment.aframe.all.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 35 additions & 3 deletions dist/xrfragment.aframe.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Wed Jan 31 11:37:04 AM UTC 2024
* v0.5.1 generated at Wed Jan 31 02:59:52 PM UTC 2024
* https://xrfragment.org
* SPDX-License-Identifier: MPL-2.0
*/
Expand Down Expand Up @@ -2478,6 +2478,12 @@ window.AFRAME.registerComponent('xrf', {
if( com ) com.update({collisionEntities:true})
else console.warn("xrfragments: blink-controls is not mounted, please run manually: $('[blink-controls]).components['blink-controls'].update({collisionEntities:true})")
}

// give headset users way to debug without a cumbersome usb-tapdance
if( xrf.debug || document.location.hostname.match(/^(localhost|[1-9])/) && !aScene.getAttribute("vconsole") ){
aScene.setAttribute('vconsole','')
}

})

xrf.addEventListener('navigateLoading', (opts) => {
Expand Down Expand Up @@ -2638,10 +2644,9 @@ window.AFRAME.registerComponent('xrf-button', {
depth: 0.005
});
el.setAttribute('material', {
shader: "flat",
color: this.color,
transparent:true,
opacity:0.7
opacity:0.3
});
el.setAttribute('pressable', '');
labelEl.setAttribute('position', '0 0 0.01');
Expand Down Expand Up @@ -2709,6 +2714,33 @@ window.AFRAME.registerComponent('xrf-button', {
});
}
});
AFRAME.registerComponent('vconsole', {
init: function () {
//AFRAME.XRF.navigator.to("https://coderofsalvation.github.io/xrsh-media/assets/background.glb")
document.head.innerHTML += `
<style type="text/css">
.vc-panel {
right:unset !important;
width:100%;
max-width:900px;
z-index:100 !important;
}
.vc-mask{ display:none !important; }
</style>
`
let script = document.createElement("script")
script.src = "https://unpkg.com/vconsole@latest/dist/vconsole.min.js"
script.setAttribute('async','true')
script.onload = function(){
this.vConsole = new window.VConsole()
document.querySelector('.vc-switch').style.right = 'unset'
document.querySelector('.vc-switch').style.left = '20px'
}
document.body.appendChild(script)
}

});

AFRAME.registerComponent('xrf-fade', {
schema:{
fadetime:{type:"number", default: 1000},
Expand Down
Loading

0 comments on commit 1645d53

Please sign in to comment.