mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 01:35:14 +02:00
Added 3 other missing properties
Added 3 other missing properties: - "alpha" of the "Image" Entity. - "billboardMode" of the "Web" Entity. - "showKeyboardFocusHighlight" of the "Web" Entity.
This commit is contained in:
parent
500c2eff5d
commit
35e76610a8
1 changed files with 25 additions and 9 deletions
|
@ -1,15 +1,9 @@
|
||||||
//VERSION 2.0
|
|
||||||
// Modified by Alezia Kurdis on on 02/27/2020
|
|
||||||
// for "Project Athena"
|
|
||||||
//
|
|
||||||
// Addition of a tab mechanism instead of collapsible sections to reduce the scrolling.
|
|
||||||
//
|
|
||||||
//VERSION 1.0
|
|
||||||
// entityProperties.js
|
// entityProperties.js
|
||||||
//
|
//
|
||||||
// Created by Ryan Huffman on 13 Nov 2014
|
// Created by Ryan Huffman on 13 Nov 2014
|
||||||
// Modified by David Back on 19 Oct 2018
|
// Modified by David Back on 19 Oct 2018
|
||||||
// Copyright 2014 High Fidelity, Inc.
|
// Copyright 2014 High Fidelity, Inc.
|
||||||
|
// Copyright 2020 Project Athena contributors.
|
||||||
//
|
//
|
||||||
// Distributed under the Apache License, Version 2.0.
|
// Distributed under the Apache License, Version 2.0.
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
@ -661,6 +655,16 @@ const GROUPS = [
|
||||||
propertyID: "imageColor",
|
propertyID: "imageColor",
|
||||||
propertyName: "color", // actual entity property name
|
propertyName: "color", // actual entity property name
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Alpha",
|
||||||
|
type: "number-draggable",
|
||||||
|
min: 0,
|
||||||
|
max: 1,
|
||||||
|
step: 0.01,
|
||||||
|
decimals: 2,
|
||||||
|
propertyID: "imageAlpha",
|
||||||
|
propertyName: "alpha",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "Emissive",
|
label: "Emissive",
|
||||||
type: "bool",
|
type: "bool",
|
||||||
|
@ -725,6 +729,18 @@ const GROUPS = [
|
||||||
decimals: 0,
|
decimals: 0,
|
||||||
propertyID: "maxFPS",
|
propertyID: "maxFPS",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Billboard Mode",
|
||||||
|
type: "dropdown",
|
||||||
|
options: { none: "None", yaw: "Yaw", full: "Full"},
|
||||||
|
propertyID: "webBillboardMode",
|
||||||
|
propertyName: "billboardMode", // actual entity property name
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Focus Highlight",
|
||||||
|
type: "bool",
|
||||||
|
propertyID: "showKeyboardFocusHighlight",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "Script URL",
|
label: "Script URL",
|
||||||
type: "string",
|
type: "string",
|
||||||
|
@ -1870,7 +1886,7 @@ function resetServerScriptStatus() {
|
||||||
function showGroupsForType(type) {
|
function showGroupsForType(type) {
|
||||||
if (type === "Box" || type === "Sphere") {
|
if (type === "Box" || type === "Sphere") {
|
||||||
showGroupsForTypes(["Shape"]);
|
showGroupsForTypes(["Shape"]);
|
||||||
showOnTheSamePage("Shape");
|
showOnTheSamePage(["Shape"]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (type === "None") {
|
if (type === "None") {
|
||||||
|
@ -1878,7 +1894,7 @@ function showGroupsForType(type) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
showGroupsForTypes([type]);
|
showGroupsForTypes([type]);
|
||||||
showOnTheSamePage(type);
|
showOnTheSamePage([type]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getGroupsForTypes(types) {
|
function getGroupsForTypes(types) {
|
||||||
|
|
Loading…
Reference in a new issue