Commit 197a2e2bebc3e0e4fd2e62ee0ab0b9f734a9b53b

Authored by Lars Jørgen Fredheim
1 parent f2acb1ff

Layout selection and measurement input

images/menu_tab_arrows.png renamed to images/menu_toggle_arrows.png

2.54 KB

js/app.js
... ... @@ -63,9 +63,9 @@ function main() {
63 63 terrace = new Terrace();
64 64 meshControls = new MeshControls();
65 65 gui = new GUI();
66   - //gui.showLayoutSelection();
  66 + gui.showLayoutSelection();
67 67  
68   - initButtons();
  68 + //initButtons();
69 69  
70 70 window.addEventListener("resize", function () { // Watch for browser/canvas resize events
71 71 engine.resize();
... ... @@ -115,7 +115,7 @@ function main() {
115 115 /*if(gui.poleHeaderText) {
116 116 gui.poleHeaderText.text = "Indekser: " + scene.getActiveIndices() + ", fps: " + Math.round(engine.getFps());
117 117 }*/
118   - document.getElementById("fpsCounter").innerHTML = "fps: " + Math.round(engine.getFps());
  118 + //document.getElementById("fpsCounter").innerHTML = "fps: " + Math.round(engine.getFps());
119 119 });
120 120  
121 121 engine.runRenderLoop(function () { // Register a render loop to repeatedly render the scene
... ...
js/gui/GUI.js
... ... @@ -50,7 +50,7 @@ class GUI {
50 50 this.menuTab.left = "30%";
51 51 this.gui.addControl(this.menuTab);
52 52  
53   - var menuTabImage = this.createImageButton(1, 1, 0, 0, "btnMenuTab", "images/menu_tab_arrows.png", false);
  53 + var menuTabImage = this.createImageButton(1, 1, 0, 0, "btnMenuTab", "images/menu_toggle_arrows.png", false);
54 54 menuTabImage.onPointerUpObservable.add(() => {
55 55 this.menuVisible = !this.menuVisible;
56 56 this.menuContainer.isVisible = this.menuVisible;
... ...