|
@@ -19,10 +19,13 @@ import { TextBlockPropertyGridComponent } from "./propertyGrids/gui/textBlockPro
|
|
import { TextBlock } from "babylonjs-gui/2D/controls/textBlock";
|
|
import { TextBlock } from "babylonjs-gui/2D/controls/textBlock";
|
|
import { InputText } from "babylonjs-gui/2D/controls/inputText";
|
|
import { InputText } from "babylonjs-gui/2D/controls/inputText";
|
|
import { InputTextPropertyGridComponent } from "./propertyGrids/gui/inputTextPropertyGridComponent";
|
|
import { InputTextPropertyGridComponent } from "./propertyGrids/gui/inputTextPropertyGridComponent";
|
|
-import { ColorPicker } from "babylonjs-gui";
|
|
|
|
|
|
+import { ColorPicker, Image, Slider, ImageBasedSlider } from "babylonjs-gui";
|
|
import { ColorPickerPropertyGridComponent } from "./propertyGrids/gui/colorPickerPropertyGridComponent";
|
|
import { ColorPickerPropertyGridComponent } from "./propertyGrids/gui/colorPickerPropertyGridComponent";
|
|
import { AnimationGroupGridComponent } from "./propertyGrids/animationGroupPropertyGridComponent";
|
|
import { AnimationGroupGridComponent } from "./propertyGrids/animationGroupPropertyGridComponent";
|
|
import { LockObject } from "./propertyGrids/lockObject";
|
|
import { LockObject } from "./propertyGrids/lockObject";
|
|
|
|
+import { ImagePropertyGridComponent } from "./propertyGrids/gui/imagePropertyGridComponent";
|
|
|
|
+import { SliderPropertyGridComponent } from "./propertyGrids/gui/sliderPropertyGridComponent";
|
|
|
|
+import { ImageBasedSliderPropertyGridComponent } from "./propertyGrids/gui/imageBasedSliderPropertyGridComponent";
|
|
|
|
|
|
export class PropertyGridTabComponent extends PaneComponent {
|
|
export class PropertyGridTabComponent extends PaneComponent {
|
|
private _timerIntervalId: number;
|
|
private _timerIntervalId: number;
|
|
@@ -178,6 +181,27 @@ export class PropertyGridTabComponent extends PaneComponent {
|
|
onPropertyChangedObservable={this.props.onPropertyChangedObservable} />);
|
|
onPropertyChangedObservable={this.props.onPropertyChangedObservable} />);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (className === "Image") {
|
|
|
|
+ const image = entity as Image;
|
|
|
|
+ return (<ImagePropertyGridComponent image={image}
|
|
|
|
+ lockObject={this._lockObject}
|
|
|
|
+ onPropertyChangedObservable={this.props.onPropertyChangedObservable} />);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (className === "Slider") {
|
|
|
|
+ const slider = entity as Slider;
|
|
|
|
+ return (<SliderPropertyGridComponent slider={slider}
|
|
|
|
+ lockObject={this._lockObject}
|
|
|
|
+ onPropertyChangedObservable={this.props.onPropertyChangedObservable} />);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (className === "ImageBasedSlider") {
|
|
|
|
+ const imageBasedSlider = entity as ImageBasedSlider;
|
|
|
|
+ return (<ImageBasedSliderPropertyGridComponent imageBasedSlider={imageBasedSlider}
|
|
|
|
+ lockObject={this._lockObject}
|
|
|
|
+ onPropertyChangedObservable={this.props.onPropertyChangedObservable} />);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (entity._host) {
|
|
if (entity._host) {
|
|
const control = entity as Control;
|
|
const control = entity as Control;
|
|
return (<ControlPropertyGridComponent control={control}
|
|
return (<ControlPropertyGridComponent control={control}
|