123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- //-----App ui-----
- function createApp() {
-
- let self = this
-
-
-
- function makeSetter(val) {
- let setstr = 'this.' + val + '= value; this.redrawEvent();'
- return setstr
- }
-
- function getNewPosition() {
- //let allChild = vwf.find("","/*")
- let cursorVisID = vwf.find("myCursor-avatar-" + vwf.moniker_, "./vis")[0]
- let avPos = AFRAME.utils.coordinates.parse(vwf.callMethod(cursorVisID, 'worldPosition'));
- let newPos = [avPos.x, avPos.y, avPos.z]
- return newPos
- }
-
- return {
- $cell: true,
- $type: "div",
- class: "propGrid max-width mdc-layout-grid mdc-layout-grid--align-left",
- $components: [
- {
- $cell: true,
- $type: "div",
- class: "mdc-layout-grid__inner",
- $components: [
- {
- $cell: true,
- $type: "div",
- class: "mdc-layout-grid__cell mdc-layout-grid__cell--span-12",
- $components: [
-
- {
- $cell: true,
- $type: "button",
- class: "mdc-button mdc-button--raised",
- $text: "Wide",
- onclick: function (e) {
- let avatarID = 'avatar-'+vwf.moniker_;
- vwf_view.kernel.callMethod(avatarID, "setBigVideoHead", []);
-
- }
-
- },
- {
- $cell: true,
- $type: "button",
- class: "mdc-button mdc-button--raised",
- $text: "Small",
- onclick: function (e) {
- let avatarID = 'avatar-'+vwf.moniker_;
- vwf_view.kernel.callMethod(avatarID, "setSmallVideoHead", []);
-
- }
-
- }
-
-
- ]
- }
- ]
- }
- ]
- }
- }
-
|