Bläddra i källkod

Make numLayoutCalls and numRenderCalls Pascal case

Popov72 5 år sedan
förälder
incheckning
e1d9fa778d

+ 2 - 2
gui/src/2D/advancedDynamicTexture.ts

@@ -550,7 +550,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
         // Layout
         this.onBeginLayoutObservable.notifyObservers(this);
         var measure = new Measure(0, 0, renderWidth, renderHeight);
-        Control.numLayoutCalls = 0;
+        Control.NumLayoutCalls = 0;
         this._rootContainer._layout(measure, context);
         this.onEndLayoutObservable.notifyObservers(this);
         this._isDirty = false; // Restoring the dirty state that could have been set by controls during layout processing
@@ -571,7 +571,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
 
         // Render
         this.onBeginRenderObservable.notifyObservers(this);
-        Control.numRenderCalls = 0;
+        Control.NumRenderCalls = 0;
         this._rootContainer._render(context, this._invalidatedRectangle);
         this.onEndRenderObservable.notifyObservers(this);
         this._invalidatedRectangle = null;

+ 1 - 1
gui/src/2D/controls/container.ts

@@ -304,7 +304,7 @@ export class Container extends Control {
             return false;
         }
 
-        Control.numLayoutCalls++;
+        Control.NumLayoutCalls++;
 
         if (this._isDirty) {
             this._currentMeasure.transformToRef(this._transformMatrix, this._prevCurrentMeasureTransformedIntoGlobalSpace);

+ 4 - 4
gui/src/2D/controls/control.ts

@@ -26,9 +26,9 @@ export class Control {
     public static AllowAlphaInheritance = false;
 
     /** Gets the number of layout calls made the last time the ADT has been rendered */
-    public static numLayoutCalls = 0;
+    public static NumLayoutCalls = 0;
     /** Gets the number of render calls made the last time the ADT has been rendered */
-    public static numRenderCalls = 0;
+    public static NumRenderCalls = 0;
 
     private _alpha = 1;
     private _alphaSet = false;
@@ -1364,7 +1364,7 @@ export class Control {
         }
 
         if (this._isDirty || !this._cachedParentMeasure.isEqualsTo(parentMeasure)) {
-            Control.numLayoutCalls++;
+            Control.NumLayoutCalls++;
 
             this._currentMeasure.transformToRef(this._transformMatrix, this._prevCurrentMeasureTransformedIntoGlobalSpace);
 
@@ -1607,7 +1607,7 @@ export class Control {
             return false;
         }
 
-        Control.numRenderCalls++;
+        Control.NumRenderCalls++;
 
         context.save();
 

+ 1 - 1
gui/src/2D/controls/scrollViewers/scrollViewerWindow.ts

@@ -37,7 +37,7 @@ export class _ScrollViewerWindow extends Container {
 
         var measure = new Measure(0, 0, renderWidth, renderHeight);
 
-        Control.numLayoutCalls = 0;
+        Control.NumLayoutCalls = 0;
 
         this.host._rootContainer._layout(measure, context);