mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 00:44:38 +02:00
add missing Text properties to Create App
This commit is contained in:
parent
00a9367f14
commit
24022f0ccc
2 changed files with 64 additions and 0 deletions
|
@ -11,9 +11,15 @@
|
||||||
"textColor": {
|
"textColor": {
|
||||||
"tooltip": "The color of the text."
|
"tooltip": "The color of the text."
|
||||||
},
|
},
|
||||||
|
"textAlpha": {
|
||||||
|
"tooltip": "The alpha of the text."
|
||||||
|
},
|
||||||
"backgroundColor": {
|
"backgroundColor": {
|
||||||
"tooltip": "The color of the background."
|
"tooltip": "The color of the background."
|
||||||
},
|
},
|
||||||
|
"backgroundAlpha": {
|
||||||
|
"tooltip": "The alpha of the background."
|
||||||
|
},
|
||||||
"lineHeight": {
|
"lineHeight": {
|
||||||
"tooltip": "The height of each line of text. This determines the size of the text."
|
"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.",
|
"tooltip": "If enabled, determines how the entity will face the camera.",
|
||||||
"jsPropertyName": "billboardMode"
|
"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": {
|
"flyingAllowed": {
|
||||||
"tooltip": "If enabled, users can fly in the zone."
|
"tooltip": "If enabled, users can fly in the zone."
|
||||||
},
|
},
|
||||||
|
|
|
@ -111,11 +111,29 @@ const GROUPS = [
|
||||||
type: "color",
|
type: "color",
|
||||||
propertyID: "textColor",
|
propertyID: "textColor",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Text Alpha",
|
||||||
|
type: "number-draggable",
|
||||||
|
min: 0,
|
||||||
|
max: 1,
|
||||||
|
step: 0.01,
|
||||||
|
decimals: 2,
|
||||||
|
propertyID: "textAlpha",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "Background Color",
|
label: "Background Color",
|
||||||
type: "color",
|
type: "color",
|
||||||
propertyID: "backgroundColor",
|
propertyID: "backgroundColor",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Background Alpha",
|
||||||
|
type: "number-draggable",
|
||||||
|
min: 0,
|
||||||
|
max: 1,
|
||||||
|
step: 0.01,
|
||||||
|
decimals: 2,
|
||||||
|
propertyID: "backgroundAlpha",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "Line Height",
|
label: "Line Height",
|
||||||
type: "number-draggable",
|
type: "number-draggable",
|
||||||
|
@ -132,6 +150,34 @@ const GROUPS = [
|
||||||
propertyID: "textBillboardMode",
|
propertyID: "textBillboardMode",
|
||||||
propertyName: "billboardMode", // actual entity property name
|
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",
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue