mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
display HTML in tablet instead of overlay web window
This commit is contained in:
parent
18db5f1724
commit
3149f02de6
1 changed files with 1 additions and 8 deletions
|
@ -20,6 +20,7 @@
|
||||||
text: "PHOTOBOOTH"
|
text: "PHOTOBOOTH"
|
||||||
});
|
});
|
||||||
function onClicked() {
|
function onClicked() {
|
||||||
|
tablet.gotoWebScreen(PHOTOBOOTH_WINDOW_HTML_URL);
|
||||||
PhotoBooth.init();
|
PhotoBooth.init();
|
||||||
}
|
}
|
||||||
button.clicked.connect(onClicked);
|
button.clicked.connect(onClicked);
|
||||||
|
@ -169,14 +170,6 @@
|
||||||
print("clicked reload model button " + event.value);
|
print("clicked reload model button " + event.value);
|
||||||
PhotoBooth.changeModel(event.value);
|
PhotoBooth.changeModel(event.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
var photoboothWindow = new OverlayWebWindow({
|
|
||||||
title: 'Photo Booth',
|
|
||||||
source: PHOTOBOOTH_WINDOW_HTML_URL,
|
|
||||||
width: 450,
|
|
||||||
height: 450,
|
|
||||||
visible: true
|
|
||||||
});
|
|
||||||
|
|
||||||
photoboothWindow.webEventReceived.connect(function (data) {
|
photoboothWindow.webEventReceived.connect(function (data) {
|
||||||
var event = JSON.parse(data);
|
var event = JSON.parse(data);
|
||||||
|
|
Loading…
Reference in a new issue