add missing Text properties to Create App

This commit is contained in:
Thijs Wenker 2019-01-08 20:37:42 +01:00
parent 00a9367f14
commit 24022f0ccc
2 changed files with 64 additions and 0 deletions

View file

@ -11,9 +11,15 @@
"textColor": {
"tooltip": "The color of the text."
},
"textAlpha": {
"tooltip": "The alpha of the text."
},
"backgroundColor": {
"tooltip": "The color of the background."
},
"backgroundAlpha": {
"tooltip": "The alpha of the background."
},
"lineHeight": {
"tooltip": "The height of each line of text. This determines the size of the text."
},
@ -21,6 +27,18 @@
"tooltip": "If enabled, determines how the entity will face the camera.",
"jsPropertyName": "billboardMode"
},
"topMargin": {
"tooltip": "The top margin, in meters."
},
"rightMargin": {
"tooltip": "The right margin, in meters."
},
"bottomMargin": {
"tooltip": "The bottom margin, in meters."
},
"leftMargin": {
"tooltip": "The left margin, in meters."
},
"flyingAllowed": {
"tooltip": "If enabled, users can fly in the zone."
},

View file

@ -111,11 +111,29 @@ const GROUPS = [
type: "color",
propertyID: "textColor",
},
{
label: "Text Alpha",
type: "number-draggable",
min: 0,
max: 1,
step: 0.01,
decimals: 2,
propertyID: "textAlpha",
},
{
label: "Background Color",
type: "color",
propertyID: "backgroundColor",
},
{
label: "Background Alpha",
type: "number-draggable",
min: 0,
max: 1,
step: 0.01,
decimals: 2,
propertyID: "backgroundAlpha",
},
{
label: "Line Height",
type: "number-draggable",
@ -132,6 +150,34 @@ const GROUPS = [
propertyID: "textBillboardMode",
propertyName: "billboardMode", // actual entity property name
},
{
label: "Top Margin",
type: "number-draggable",
step: 0.01,
decimals: 2,
propertyID: "topMargin",
},
{
label: "Right Margin",
type: "number-draggable",
step: 0.01,
decimals: 2,
propertyID: "rightMargin",
},
{
label: "Bottom Margin",
type: "number-draggable",
step: 0.01,
decimals: 2,
propertyID: "bottomMargin",
},
{
label: "Left Margin",
type: "number-draggable",
step: 0.01,
decimals: 2,
propertyID: "leftMargin",
},
]
},
{