-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update xr-mode-ui.md #5420
Update xr-mode-ui.md #5420
Conversation
Corrected default values for enterVREnabled and enterAREnabled. Added examples to clarify customization options. Seperated out "one of" into seperate column for greater clarity.
docs/components/xr-mode-ui.md
Outdated
| enterAREnabled | If the AR button is displayed when applicable | false | | ||
| XRMode | If the AR, VR button or both will be displayed. One of 'ar', 'vr' or 'xr'.| vr | | ||
| Property | Description | Default Value | One of | | ||
|-------------------------|---------------------------------------------------------------------|---------------|--------| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a One Of column makes docs inconsistent with other components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Removed One Of column from pull request.
docs/components/xr-mode-ui.md
Outdated
| Property | Description | Default Value | One of | | ||
|-------------------------|---------------------------------------------------------------------|---------------|--------| | ||
| `cardboardModeEnabled` | Enables the now deprecated cardboard mode. | `false` | - | ||
| `enabled` | Whether or not to display UI related to entering VR. | `true` | - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use backticks in property names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed backticks ( ` ) from pull request.
docs/components/xr-mode-ui.md
Outdated
</a-scene> | ||
``` | ||
|
||
### Specifying a Custom Enter AR Button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these are a bit redundant. Can perhaps clarify the Specifying Custom Enter VR and Enter AR Buttons
section if needed. I don't think we need three separate sections Specifying a Custom Enter VR Button
, Specifying a Custom Enter AR Button
and Specifying Custom Enter VR and Enter AR Buttons
docs/components/xr-mode-ui.md
Outdated
<a id="myEnterVRButton" href="#"></a> | ||
<a id="myEnterARButton" href="#"></a> | ||
</a-scene> | ||
``` | ||
> ( i ) This is similar to the behavior of the `vr-mode-ui` component that the `xr-mode-ui` component replaced in A-Frame 1.5.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use the deprecations section in release notes for this: https://github.com/aframevr/aframe/releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to avoid info in docs info that loses relevance or gets obsolete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Removed the note from this section.
Thanks. I made a few comments. Some of the info I think is redundant. Covered in other places. If customizing the AR and VR buttons docs is not clear we can perhaps expand a bit while keeping it concise. |
We can perhaps just tweak the general description. Now
Alternative
|
### Specifying Custom Enter VR and Enter AR Buttons | ||
|
||
Display a custom Enter VR Button when VR is supported and a custom Enter AR button when AR is supported. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmarcos I've condensed the three sections back down to one. Hopefully, this is more concise and helps to clarify.
Thanks for the patience! |
congrats on your first contribution! |
Description:
Corrected default values for enterVREnabled and enterAREnabled. Added examples to clarify customization options. Added "One of" column for greater clarity.
Changes proposed: