()
| 452 | var talktime = true; |
| 453 | |
| 454 | function interface() { |
| 455 | |
| 456 | if (initvalues == true){ |
| 457 | if (localStorage.localvalues) { |
| 458 | initvalues = false; |
| 459 | document.getElementById("mouththreshold").value = mouththreshold; |
| 460 | document.getElementById("mouthboost").value = mouthboost; |
| 461 | document.getElementById("bodythreshold").value = bodythreshold; |
| 462 | document.getElementById("bodymotion").value = bodymotion; |
| 463 | document.getElementById("expression").value = expression; |
| 464 | }} |
| 465 | |
| 466 | mouththreshold = document.getElementById("mouththreshold").value; |
| 467 | mouthboost = document.getElementById("mouthboost").value; |
| 468 | bodythreshold = document.getElementById("bodythreshold").value; |
| 469 | bodymotion = document.getElementById("bodymotion").value; |
| 470 | |
| 471 | expression = document.getElementById("expression").value; |
| 472 | expressionlimityay = (expression); |
| 473 | expressionlimitoof = (100 - expression); |
| 474 | expressionlimityay = expressionlimityay/100; |
| 475 | expressionlimitoof = expressionlimitoof/100; |
| 476 | expressionlimityay = expressionlimityay*expressionintensity; |
| 477 | expressionlimitoof = expressionlimitoof*expressionintensity; |
| 478 | |
| 479 | console.log("Expression " + expressionyay + " yay / " + expressionoof + " oof"); |
| 480 | console.log("Expression mix " + expressionlimityay + " yay / " + expressionlimitoof + " oof"); |
| 481 | |
| 482 | // store it too |
| 483 | localStorage.localvalues = 1; |
| 484 | localStorage.mouththreshold = mouththreshold; |
| 485 | localStorage.mouthboost = mouthboost; |
| 486 | localStorage.bodythreshold = bodythreshold; |
| 487 | localStorage.bodymotion = bodymotion; |
| 488 | localStorage.expression = expression; |
| 489 | |
| 490 | } |
| 491 | |
| 492 | // click to dismiss non-vrm divs |
| 493 | function hideinterface() { |
nothing calls this directly
no outgoing calls
no test coverage detected