a-frame-components
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -57,3 +57,3 @@ /* globals AFRAME */ | ||
init: function () { | ||
this.initTextures(); | ||
// this.initTextures(); | ||
this.liveInteractions = {}; | ||
@@ -197,15 +197,15 @@ this.liveInteractingKeys = []; | ||
}, | ||
initTextures: function () { | ||
var self = this; | ||
var hoverTextureUrl = 'assets/images/ui-hover.png'; | ||
var pressedTextureUrl = 'assets/images/ui-pressed.png'; | ||
this.sceneEl.systems.material.loadTexture(hoverTextureUrl, { src: hoverTextureUrl }, onLoadedHoverTexture); | ||
this.sceneEl.systems.material.loadTexture(pressedTextureUrl, { src: pressedTextureUrl }, onLoadedPressedTexture); | ||
function onLoadedHoverTexture(texture) { | ||
self.hoverTexture = texture; | ||
} | ||
function onLoadedPressedTexture(texture) { | ||
self.pressedTexture = texture; | ||
} | ||
}, | ||
// initTextures: function () { | ||
// var self = this; | ||
// var hoverTextureUrl = 'assets/images/ui-hover.png'; | ||
// var pressedTextureUrl = 'assets/images/ui-pressed.png'; | ||
// this.sceneEl.systems.material.loadTexture(hoverTextureUrl, { src: hoverTextureUrl }, onLoadedHoverTexture); | ||
// this.sceneEl.systems.material.loadTexture(pressedTextureUrl, { src: pressedTextureUrl }, onLoadedPressedTexture); | ||
// function onLoadedHoverTexture(texture) { | ||
// self.hoverTexture = texture; | ||
// } | ||
// function onLoadedPressedTexture(texture) { | ||
// self.pressedTexture = texture; | ||
// } | ||
// }, | ||
closeAll: function () { | ||
@@ -212,0 +212,0 @@ var els = document.querySelectorAll('[ui]'); |
{ | ||
"name": "a-frame-components", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -60,3 +60,3 @@ /* globals AFRAME */ | ||
init: function () { | ||
this.initTextures(); | ||
// this.initTextures(); | ||
this.liveInteractions = {} | ||
@@ -196,15 +196,15 @@ this.liveInteractingKeys = []; | ||
initTextures: function () { | ||
var self = this; | ||
var hoverTextureUrl = 'assets/images/ui-hover.png'; | ||
var pressedTextureUrl = 'assets/images/ui-pressed.png'; | ||
this.sceneEl.systems.material.loadTexture(hoverTextureUrl, { src: hoverTextureUrl }, onLoadedHoverTexture); | ||
this.sceneEl.systems.material.loadTexture(pressedTextureUrl, { src: pressedTextureUrl }, onLoadedPressedTexture); | ||
function onLoadedHoverTexture(texture) { | ||
self.hoverTexture = texture; | ||
} | ||
function onLoadedPressedTexture(texture) { | ||
self.pressedTexture = texture; | ||
} | ||
}, | ||
// initTextures: function () { | ||
// var self = this; | ||
// var hoverTextureUrl = 'assets/images/ui-hover.png'; | ||
// var pressedTextureUrl = 'assets/images/ui-pressed.png'; | ||
// this.sceneEl.systems.material.loadTexture(hoverTextureUrl, { src: hoverTextureUrl }, onLoadedHoverTexture); | ||
// this.sceneEl.systems.material.loadTexture(pressedTextureUrl, { src: pressedTextureUrl }, onLoadedPressedTexture); | ||
// function onLoadedHoverTexture(texture) { | ||
// self.hoverTexture = texture; | ||
// } | ||
// function onLoadedPressedTexture(texture) { | ||
// self.pressedTexture = texture; | ||
// } | ||
// }, | ||
@@ -211,0 +211,0 @@ closeAll: function () { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1414938