mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
- add missing start/middle/finish tooltips
- style updates
This commit is contained in:
parent
d547a29f94
commit
e193dcbc60
3 changed files with 73 additions and 7 deletions
|
@ -193,22 +193,52 @@
|
||||||
"emitterShouldTrail": {
|
"emitterShouldTrail": {
|
||||||
"tooltip": "If enabled, then particles are \"left behind\" as the emitter moves, otherwise they are not."
|
"tooltip": "If enabled, then particles are \"left behind\" as the emitter moves, otherwise they are not."
|
||||||
},
|
},
|
||||||
|
"particleRadiusTriple": {
|
||||||
|
"tooltip": "The size of each particle.",
|
||||||
|
"jsPropertyName": "particleRadius"
|
||||||
|
},
|
||||||
"particleRadius": {
|
"particleRadius": {
|
||||||
"tooltip": "The size of each particle."
|
"tooltip": "The size of each particle."
|
||||||
},
|
},
|
||||||
|
"radiusStart": {
|
||||||
|
"tooltip": "The start size of each particle."
|
||||||
|
},
|
||||||
|
"radiusFinish": {
|
||||||
|
"tooltip": "The finish size of each particle."
|
||||||
|
},
|
||||||
"radiusSpread": {
|
"radiusSpread": {
|
||||||
"tooltip": "The spread in size that each particle is given, resulting in a variety of sizes."
|
"tooltip": "The spread in size that each particle is given, resulting in a variety of sizes."
|
||||||
},
|
},
|
||||||
|
"particleColorTriple": {
|
||||||
|
"tooltip": "The color of each particle.",
|
||||||
|
"jsPropertyName": "color"
|
||||||
|
},
|
||||||
"particleColor": {
|
"particleColor": {
|
||||||
"tooltip": "The color of each particle.",
|
"tooltip": "The color of each particle.",
|
||||||
"jsPropertyName": "color"
|
"jsPropertyName": "color"
|
||||||
},
|
},
|
||||||
|
"colorStart": {
|
||||||
|
"tooltip": "The start color of each particle."
|
||||||
|
},
|
||||||
|
"colorFinish": {
|
||||||
|
"tooltip": "The finish color of each particle."
|
||||||
|
},
|
||||||
"colorSpread": {
|
"colorSpread": {
|
||||||
"tooltip": "The spread in color that each particle is given, resulting in a variety of colors."
|
"tooltip": "The spread in color that each particle is given, resulting in a variety of colors."
|
||||||
},
|
},
|
||||||
|
"particleAlphaTriple": {
|
||||||
|
"tooltip": "The alpha of each particle.",
|
||||||
|
"jsPropertyName": "alpha"
|
||||||
|
},
|
||||||
"alpha": {
|
"alpha": {
|
||||||
"tooltip": "The alpha of each particle."
|
"tooltip": "The alpha of each particle."
|
||||||
},
|
},
|
||||||
|
"alphaStart": {
|
||||||
|
"tooltip": "The start alpha of each particle."
|
||||||
|
},
|
||||||
|
"alphaFinish": {
|
||||||
|
"tooltip": "The finish alpha of each particle."
|
||||||
|
},
|
||||||
"alphaSpread": {
|
"alphaSpread": {
|
||||||
"tooltip": "The spread in alpha that each particle is given, resulting in a variety of alphas."
|
"tooltip": "The spread in alpha that each particle is given, resulting in a variety of alphas."
|
||||||
},
|
},
|
||||||
|
@ -218,20 +248,44 @@
|
||||||
"accelerationSpread": {
|
"accelerationSpread": {
|
||||||
"tooltip": "The spread in accelerations that each particle is given, resulting in a variety of accelerations."
|
"tooltip": "The spread in accelerations that each particle is given, resulting in a variety of accelerations."
|
||||||
},
|
},
|
||||||
|
"particleSpinTriple": {
|
||||||
|
"tooltip": "The spin of each particle.",
|
||||||
|
"jsPropertyName": "particleSpin"
|
||||||
|
},
|
||||||
"particleSpin": {
|
"particleSpin": {
|
||||||
"tooltip": "The spin of each particle in the system."
|
"tooltip": "The spin of each particle."
|
||||||
|
},
|
||||||
|
"spinStart": {
|
||||||
|
"tooltip": "The start spin of each particle."
|
||||||
|
},
|
||||||
|
"spinFinish": {
|
||||||
|
"tooltip": "The finish spin of each particle."
|
||||||
},
|
},
|
||||||
"spinSpread": {
|
"spinSpread": {
|
||||||
"tooltip": "The spread in spin that each particle is given, resulting in a variety of spins."
|
"tooltip": "The spread in spin that each particle is given, resulting in a variety of spins."
|
||||||
},
|
},
|
||||||
"rotateWithEntity": {
|
"rotateWithEntity": {
|
||||||
"tooltip": "If enabled, each particle will spin relative to the roation of the entity as a whole."
|
"tooltip": "If enabled, each particle will spin relative to the rotation of the entity as a whole."
|
||||||
|
},
|
||||||
|
"particlePolarTriple": {
|
||||||
|
"tooltip": "The angle range in deg at which particles are emitted. Starts in the entity's -z direction, and rotates around its y axis.",
|
||||||
|
"skipJSProperty": true
|
||||||
},
|
},
|
||||||
"polarStart": {
|
"polarStart": {
|
||||||
"tooltip": "The angle in deg at which particles are emitted. Starts in the entity's -z direction, and rotates around its y axis."
|
"tooltip": "The start angle in deg at which particles are emitted. Starts in the entity's -z direction, and rotates around its y axis."
|
||||||
|
},
|
||||||
|
"polarFinish": {
|
||||||
|
"tooltip": "The finish angle in deg at which particles are emitted. Starts in the entity's -z direction, and rotates around its y axis."
|
||||||
|
},
|
||||||
|
"particleAzimuthTriple": {
|
||||||
|
"tooltip": "The angle range in deg at which particles are emitted. Starts in the entity's -x direction, and rotates around its z axis.",
|
||||||
|
"skipJSProperty": true
|
||||||
},
|
},
|
||||||
"azimuthStart": {
|
"azimuthStart": {
|
||||||
"tooltip": "The angle in deg at which particles are emitted. Starts in the entity's -z direction, and rotates around its y axis."
|
"tooltip": "The start angle in deg at which particles are emitted. Starts in the entity's -x direction, and rotates around its z axis."
|
||||||
|
},
|
||||||
|
"azimuthFinish": {
|
||||||
|
"tooltip": "The finish angle in deg at which particles are emitted. Starts in the entity's -x direction, and rotates around its z axis."
|
||||||
},
|
},
|
||||||
"lightColor": {
|
"lightColor": {
|
||||||
"tooltip": "The color of the light emitted.",
|
"tooltip": "The color of the light emitted.",
|
||||||
|
@ -352,7 +406,7 @@
|
||||||
"tooltip": "The URL of a sound to play when the entity collides with something else."
|
"tooltip": "The URL of a sound to play when the entity collides with something else."
|
||||||
},
|
},
|
||||||
"grab.grabbable": {
|
"grab.grabbable": {
|
||||||
"tooltip": "If enabled, this entity will allow grabbing input and will be moveable."
|
"tooltip": "If enabled, this entity will allow grabbing input and will be movable."
|
||||||
},
|
},
|
||||||
"grab.triggerable": {
|
"grab.triggerable": {
|
||||||
"tooltip": "If enabled, the collider on this entity is used for triggering events."
|
"tooltip": "If enabled, the collider on this entity is used for triggering events."
|
||||||
|
|
|
@ -599,6 +599,7 @@ div.section[collapsed="true"], div.section[collapsed="true"] > .section-header {
|
||||||
.triple-label {
|
.triple-label {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
padding: 6px 0;
|
padding: 6px 0;
|
||||||
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.triple-item {
|
.triple-item {
|
||||||
|
@ -1507,6 +1508,7 @@ input.rename-entity {
|
||||||
}
|
}
|
||||||
|
|
||||||
.create-app-tooltip {
|
.create-app-tooltip {
|
||||||
|
z-index: 100;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: #6a6a6a;
|
background: #6a6a6a;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
|
@ -1644,6 +1646,7 @@ input.number-slider {
|
||||||
font-family: Raleway-Light;
|
font-family: Raleway-Light;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin: 6px 0;
|
margin: 6px 0;
|
||||||
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
#property-name, #property-id {
|
#property-name, #property-id {
|
||||||
|
@ -1656,7 +1659,7 @@ input.number-slider {
|
||||||
}
|
}
|
||||||
|
|
||||||
#placeholder-property-type {
|
#placeholder-property-type {
|
||||||
min-width: 0px;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collapse-icon {
|
.collapse-icon {
|
||||||
|
|
|
@ -720,6 +720,7 @@ const GROUPS = [
|
||||||
{
|
{
|
||||||
type: "triple",
|
type: "triple",
|
||||||
label: "Size",
|
label: "Size",
|
||||||
|
propertyID: "particleRadiusTriple",
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
label: "Start",
|
label: "Start",
|
||||||
|
@ -771,6 +772,7 @@ const GROUPS = [
|
||||||
{
|
{
|
||||||
type: "triple",
|
type: "triple",
|
||||||
label: "Color",
|
label: "Color",
|
||||||
|
propertyID: "particleColorTriple",
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
label: "Start",
|
label: "Start",
|
||||||
|
@ -807,6 +809,7 @@ const GROUPS = [
|
||||||
{
|
{
|
||||||
type: "triple",
|
type: "triple",
|
||||||
label: "Alpha",
|
label: "Alpha",
|
||||||
|
propertyID: "particleAlphaTriple",
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
label: "Start",
|
label: "Start",
|
||||||
|
@ -883,6 +886,7 @@ const GROUPS = [
|
||||||
{
|
{
|
||||||
type: "triple",
|
type: "triple",
|
||||||
label: "Alpha",
|
label: "Alpha",
|
||||||
|
propertyID: "particleSpinTriple",
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
label: "Start",
|
label: "Start",
|
||||||
|
@ -947,6 +951,7 @@ const GROUPS = [
|
||||||
{
|
{
|
||||||
type: "triple",
|
type: "triple",
|
||||||
label: "Horizontal Angle",
|
label: "Horizontal Angle",
|
||||||
|
propertyID: "particlePolarTriple",
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
label: "Start",
|
label: "Start",
|
||||||
|
@ -975,6 +980,7 @@ const GROUPS = [
|
||||||
{
|
{
|
||||||
type: "triple",
|
type: "triple",
|
||||||
label: "Vertical Angle",
|
label: "Vertical Angle",
|
||||||
|
propertyID: "particleAzimuthTriple",
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
label: "Start",
|
label: "Start",
|
||||||
|
@ -2886,7 +2892,10 @@ function loaded() {
|
||||||
let propertyElementID = "property-" + propertyID;
|
let propertyElementID = "property-" + propertyID;
|
||||||
propertyElementID = propertyElementID.replace('.', '-');
|
propertyElementID = propertyElementID.replace('.', '-');
|
||||||
|
|
||||||
elWrapper.appendChild(createElementFromHTML(`<div class="triple-label">${innerPropertyData.label}</div>`));
|
let elLabel = createElementFromHTML(`<div class="triple-label">${innerPropertyData.label}</div>`);
|
||||||
|
createAppTooltip.registerTooltipElement(elLabel, propertyID);
|
||||||
|
|
||||||
|
elWrapper.appendChild(elLabel);
|
||||||
elProperty.appendChild(elWrapper);
|
elProperty.appendChild(elWrapper);
|
||||||
|
|
||||||
let property = createProperty(innerPropertyData, propertyElementID, propertyName, propertyID, elWrapper.childNodes[0]);
|
let property = createProperty(innerPropertyData, propertyElementID, propertyName, propertyID, elWrapper.childNodes[0]);
|
||||||
|
|
Loading…
Reference in a new issue