|
@@ -113,6 +113,17 @@ module BABYLON.GUI {
|
|
|
|
|
|
this._focusedControl = control;
|
|
|
}
|
|
|
+
|
|
|
+ public get isForeground(): boolean {
|
|
|
+ return (!this.layer.isBackground);
|
|
|
+ }
|
|
|
+
|
|
|
+ public set isForeground(value: boolean) {
|
|
|
+ if (this.layer.isBackground === !value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.layer.isBackground = !value;
|
|
|
+ }
|
|
|
|
|
|
constructor(name: string, width = 0, height = 0, scene: Nullable<Scene>, generateMipMaps = false, samplingMode = Texture.NEAREST_SAMPLINGMODE) {
|
|
|
super(name, {width: width, height: height}, scene, generateMipMaps, samplingMode, Engine.TEXTUREFORMAT_RGBA);
|
|
@@ -507,4 +518,4 @@ module BABYLON.GUI {
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|