Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
Hubs
Commits
8f7cc644
Commit
8f7cc644
authored
6 years ago
by
johnshaughnessy
Browse files
Options
Downloads
Patches
Plain Diff
Change hover sound
parent
9e99812d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/assets/sfx/Roll_Over_New.wav
+0
-0
0 additions, 0 deletions
src/assets/sfx/Roll_Over_New.wav
src/hub.html
+7
-7
7 additions, 7 deletions
src/hub.html
src/react-components/wrap-with-audio.js
+1
-1
1 addition, 1 deletion
src/react-components/wrap-with-audio.js
with
8 additions
and
8 deletions
src/assets/sfx/Roll_Over_New.wav
0 → 100755
+
0
−
0
View file @
8f7cc644
File added
This diff is collapsed.
Click to expand it.
src/hub.html
+
7
−
7
View file @
8f7cc644
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<a-asset-item
id=
"sound_asset-snap_rotate"
src=
"./assets/sfx/tap_mellow.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-snap_rotate"
src=
"./assets/sfx/tap_mellow.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-media_loaded"
src=
"./assets/sfx/tap_mellow.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-media_loaded"
src=
"./assets/sfx/tap_mellow.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-hud_mouseout"
src=
"./assets/sfx/footfall_click.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-hud_mouseout"
src=
"./assets/sfx/footfall_click.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-hud_
mouseover"
src=
"./assets/sfx/
tap_mello
w.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-hud_
hover_start"
src=
"./assets/sfx/
Roll_Over_Ne
w.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-hover"
src=
"./assets/sfx/tap_mellow.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-hover"
src=
"./assets/sfx/tap_mellow.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-hover_off"
src=
"./assets/sfx/footfall_click.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-hover_off"
src=
"./assets/sfx/footfall_click.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-cursor_distance_change_blocked"
src=
"./assets/sfx/tap_mellow.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
<a-asset-item
id=
"sound_asset-cursor_distance_change_blocked"
src=
"./assets/sfx/tap_mellow.wav"
response-type=
"arraybuffer"
preload=
"auto"
></a-asset-item>
...
@@ -365,14 +365,14 @@
...
@@ -365,14 +365,14 @@
class=
"ui hud mic"
class=
"ui hud mic"
material=
"alphaTest:0.1;"
material=
"alphaTest:0.1;"
hoverable
hoverable
sound__hud_
mouseover
=
"src: #sound_asset-hud_
mouseover
; on: mouseover; poolSize: 5;"
sound__hud_
hover_start
=
"src: #sound_asset-hud_
hover_start
; on: mouseover; poolSize: 5;"
></a-image>
></a-image>
<a-image
icon-button=
"tooltip: #hud-tooltip; tooltipText: Pause; activeTooltipText: Resume; image: #freeze-off; hoverImage: #freeze-off-hover; activeImage: #freeze-on; activeHoverImage: #freeze-on-hover"
<a-image
icon-button=
"tooltip: #hud-tooltip; tooltipText: Pause; activeTooltipText: Resume; image: #freeze-off; hoverImage: #freeze-off-hover; activeImage: #freeze-on; activeHoverImage: #freeze-on-hover"
scale=
"0.2 0.2 0.2"
scale=
"0.2 0.2 0.2"
position=
"0 0 0.005"
position=
"0 0 0.005"
class=
"ui hud freeze"
class=
"ui hud freeze"
hoverable
hoverable
sound__hud_
mouseover
=
"src: #sound_asset-hud_
mouseover
; on: mouseover; poolSize: 5;"
sound__hud_
hover_start
=
"src: #sound_asset-hud_
hover_start
; on: mouseover; poolSize: 5;"
></a-image>
></a-image>
<a-image
icon-button=
"tooltip: #hud-tooltip; tooltipText: Pen; activeTooltipText: Pen; image: #spawn-pen; hoverImage: #spawn-pen-hover; activeImage: #spawn-pen; activeHoverImage: #spawn-pen-hover"
<a-image
icon-button=
"tooltip: #hud-tooltip; tooltipText: Pen; activeTooltipText: Pen; image: #spawn-pen; hoverImage: #spawn-pen-hover; activeImage: #spawn-pen; activeHoverImage: #spawn-pen-hover"
scale=
"0.1 0.1 0.1"
scale=
"0.1 0.1 0.1"
...
@@ -380,7 +380,7 @@
...
@@ -380,7 +380,7 @@
class=
"ui hud penhud"
class=
"ui hud penhud"
material=
"alphaTest:0.1;"
material=
"alphaTest:0.1;"
hoverable
hoverable
sound__hud_
mouseover
=
"src: #sound_asset-hud_
mouseover
; on: mouseover; poolSize: 5;"
sound__hud_
hover_start
=
"src: #sound_asset-hud_
hover_start
; on: mouseover; poolSize: 5;"
></a-image>
></a-image>
<a-image
icon-button=
"tooltip: #hud-tooltip; tooltipText: Camera; activeTooltipText: Camera; image: #spawn-camera; hoverImage: #spawn-camera-hover; activeImage: #spawn-camera; activeHoverImage: #spawn-camera-hover"
<a-image
icon-button=
"tooltip: #hud-tooltip; tooltipText: Camera; activeTooltipText: Camera; image: #spawn-camera; hoverImage: #spawn-camera-hover; activeImage: #spawn-camera; activeHoverImage: #spawn-camera-hover"
scale=
"0.1 0.1 0.1"
scale=
"0.1 0.1 0.1"
...
@@ -388,7 +388,7 @@
...
@@ -388,7 +388,7 @@
class=
"ui hud cameraBtn"
class=
"ui hud cameraBtn"
material=
"alphaTest:0.1;"
material=
"alphaTest:0.1;"
hoverable
hoverable
sound__hud_
mouseover
=
"src: #sound_asset-hud_
mouseover
; on: mouseover; poolSize: 5;"
sound__hud_
hover_start
=
"src: #sound_asset-hud_
hover_start
; on: mouseover; poolSize: 5;"
></a-image>
></a-image>
<a-rounded
visible=
"false"
id=
"hud-tooltip"
height=
"0.08"
width=
"0.3"
color=
"#000000"
position=
"-0.15 -0.2 0"
rotation=
"-20 0 0"
radius=
"0.025"
opacity=
"0.35"
class=
"hud bg"
>
<a-rounded
visible=
"false"
id=
"hud-tooltip"
height=
"0.08"
width=
"0.3"
color=
"#000000"
position=
"-0.15 -0.2 0"
rotation=
"-20 0 0"
radius=
"0.025"
opacity=
"0.35"
class=
"hud bg"
>
<a-entity
text=
"value: Mute Mic; align:center;"
position=
"0.15 0.04 0.001"
></a-entity>
<a-entity
text=
"value: Mute Mic; align:center;"
position=
"0.15 0.04 0.001"
></a-entity>
...
@@ -422,8 +422,8 @@
...
@@ -422,8 +422,8 @@
scene-sound__hud_action_space_bubble=
"on: action_space_bubble;"
scene-sound__hud_action_space_bubble=
"on: action_space_bubble;"
sound__hud_spawn_pen=
"src: #sound_asset-spawn_pen; on: nothing; poolSize: 2;"
sound__hud_spawn_pen=
"src: #sound_asset-spawn_pen; on: nothing; poolSize: 2;"
scene-sound__hud_spawn_pen=
"on: spawn_pen;"
scene-sound__hud_spawn_pen=
"on: spawn_pen;"
sound__hud_
mouseover
=
"src: #sound_asset-hud_
mouseover
; on: nothing; poolSize: 5;"
sound__hud_
hover_start
=
"src: #sound_asset-hud_
hover_start
; on: nothing; poolSize: 5;"
scene-sound__hud_
mouseover
=
"on: play_sound-hud_
mouse_enter
;"
scene-sound__hud_
hover_start
=
"on: play_sound-hud_
hover_start
;"
sound__hud_mouseout=
"src: #sound_asset-hud_mouseout; on: nothing; poolSize: 1;"
sound__hud_mouseout=
"src: #sound_asset-hud_mouseout; on: nothing; poolSize: 1;"
scene-sound__hud_mouseout=
"on: play_sound-hud_mouse_leave;"
scene-sound__hud_mouseout=
"on: play_sound-hud_mouse_leave;"
sound__hud_click=
"src: #sound_asset-hud_click; on: nothing; poolSize: 1;"
sound__hud_click=
"src: #sound_asset-hud_click; on: nothing; poolSize: 1;"
...
...
This diff is collapsed.
Click to expand it.
src/react-components/wrap-with-audio.js
+
1
−
1
View file @
8f7cc644
...
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
...
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
export
const
AudioContext
=
React
.
createContext
({});
export
const
AudioContext
=
React
.
createContext
({});
export
const
hudHoverSound
=
"
play_sound-hud_
mouse_enter
"
;
export
const
hudHoverSound
=
"
play_sound-hud_
hover_start
"
;
export
const
WithHoverSound
=
({
sound
,
children
})
=>
{
export
const
WithHoverSound
=
({
sound
,
children
})
=>
{
return
(
return
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment