Merge pull request #15336 from r3tk0n/controller-help-update
Case 22069: Update Controller Help Screen
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 331 KiB |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 308 KiB |
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 229 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 267 KiB |
|
@ -53,6 +53,16 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0; left: 0; bottom: 0; right: 0;
|
top: 0; left: 0; bottom: 0; right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#image_button {
|
||||||
|
position: absolute;
|
||||||
|
width: 463;
|
||||||
|
height: 410;
|
||||||
|
top: 155;
|
||||||
|
left: 8;
|
||||||
|
right: 8;
|
||||||
|
bottom: 146;
|
||||||
|
}
|
||||||
|
|
||||||
#report_problem {
|
#report_problem {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -67,17 +77,23 @@
|
||||||
var handControllerImageURL = null;
|
var handControllerImageURL = null;
|
||||||
var index = 0;
|
var index = 0;
|
||||||
var count = 3;
|
var count = 3;
|
||||||
|
var handControllerRefURL = "https://docs.highfidelity.com/en/rc81/explore/get-started/vr-controls.html#vr-controls";
|
||||||
|
var keyboardRefURL = "https://docs.highfidelity.com/en/rc81/explore/get-started/desktop.html#movement-controls";
|
||||||
|
var gamepadRefURL = "https://docs.highfidelity.com/en/rc81/explore/get-started/vr-controls.html#gamepad";
|
||||||
|
|
||||||
function showKbm() {
|
function showKbm() {
|
||||||
document.getElementById("main_image").setAttribute("src", "img/tablet-help-keyboard.jpg");
|
document.getElementById("main_image").setAttribute("src", "img/tablet-help-keyboard.jpg");
|
||||||
|
document.getElementById("image_button").setAttribute("href", keyboardRefURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showHandControllers() {
|
function showHandControllers() {
|
||||||
document.getElementById("main_image").setAttribute("src", handControllerImageURL);
|
document.getElementById("main_image").setAttribute("src", handControllerImageURL);
|
||||||
|
document.getElementById("image_button").setAttribute("href", handControllerRefURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showGamepad() {
|
function showGamepad() {
|
||||||
document.getElementById("main_image").setAttribute("src", "img/tablet-help-gamepad.jpg");
|
document.getElementById("main_image").setAttribute("src", "img/tablet-help-gamepad.jpg");
|
||||||
|
document.getElementById("image_button").setAttribute("href", gamepadRefURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function cycleRight() {
|
function cycleRight() {
|
||||||
|
@ -171,6 +187,7 @@
|
||||||
<img id="main_image" src="img/tablet-help-keyboard.jpg" width="480px" height="720px"></img>
|
<img id="main_image" src="img/tablet-help-keyboard.jpg" width="480px" height="720px"></img>
|
||||||
<a href="#" id="left_button" onmousedown="cycleLeft()"></a>
|
<a href="#" id="left_button" onmousedown="cycleLeft()"></a>
|
||||||
<a href="#" id="right_button" onmousedown="cycleRight()"></a>
|
<a href="#" id="right_button" onmousedown="cycleRight()"></a>
|
||||||
|
<a href="#" id="image_button"></a>
|
||||||
</div>
|
</div>
|
||||||
<a href="mailto:support@highfidelity.com" id="report_problem">Report Problem</a>
|
<a href="mailto:support@highfidelity.com" id="report_problem">Report Problem</a>
|
||||||
</body>
|
</body>
|
||||||
|
|