@@ -25,7 +25,7 @@ public sealed class Graphics : IDeviceContext, IDisposable
25
25
internal Rectangle Group { get ; set ; }
26
26
internal void GroupBegin ( Control groupControl )
27
27
{
28
- var c_position = Control . Location + Control . UWF_Offset ; //Control.PointToScreen(Point.Zero);
28
+ var c_position = Control . Location + Control . uwfOffset ; //Control.PointToScreen(Point.Zero);
29
29
GUI . BeginGroup ( new Rect ( ( c_position . X + Group . X ) , ( c_position . Y + Group . Y ) , Group . Width , Group . Height ) ) ;
30
30
_groupControls . Add ( groupControl ) ;
31
31
}
@@ -160,7 +160,7 @@ public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
160
160
161
161
if ( x1 != x2 && y1 != y2 )
162
162
{
163
- Control . UWF_Batches ++ ;
163
+ Control . uwfBatches ++ ;
164
164
165
165
float xDiff = x2 - x1 ;
166
166
float yDiff = y2 - y1 ;
@@ -208,7 +208,7 @@ public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
208
208
switch ( pen . DashStyle )
209
209
{
210
210
case Drawing2D . DashStyle . Solid :
211
- if ( Control != null ) Control . UWF_Batches ++ ;
211
+ if ( Control != null ) Control . uwfBatches ++ ;
212
212
GUI . DrawTexture ( new Rect ( x , y , width , height ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
213
213
break ;
214
214
case Drawing2D . DashStyle . Dash :
@@ -219,7 +219,7 @@ public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
219
219
float dash_width = dash_step - 2 ;
220
220
if ( i + dash_width > width )
221
221
dash_width = width - i ;
222
- if ( Control != null ) Control . UWF_Batches ++ ;
222
+ if ( Control != null ) Control . uwfBatches ++ ;
223
223
GUI . DrawTexture ( new Rect ( x + i , y , dash_width , pen . Width ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
224
224
}
225
225
@@ -229,7 +229,7 @@ public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
229
229
float dash_height = dash_step - 2 ;
230
230
if ( i + dash_height > height )
231
231
dash_height = height - i ;
232
- if ( Control != null ) Control . UWF_Batches ++ ;
232
+ if ( Control != null ) Control . uwfBatches ++ ;
233
233
GUI . DrawTexture ( new Rect ( x + width - pen . Width , y + i , pen . Width , dash_height ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
234
234
}
235
235
break ;
@@ -349,22 +349,22 @@ public void DrawRectangle(Color color, float x, float y, float width, float heig
349
349
GUI . color = color . ToUColor ( ) ;
350
350
351
351
if ( Control != null )
352
- Control . UWF_Batches += 2 ;
352
+ Control . uwfBatches += 2 ;
353
353
354
354
GUI . DrawTexture ( new Rect ( x , y , width , 1 ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
355
355
GUI . DrawTexture ( new Rect ( x + width - 1 , y + 1 , 1 , height - 2 ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
356
356
FillRate += width + height - 2 ;
357
357
if ( height > 1 )
358
358
{
359
359
if ( Control != null )
360
- Control . UWF_Batches ++ ;
360
+ Control . uwfBatches ++ ;
361
361
GUI . DrawTexture ( new Rect ( x , y + height - 1 , width , 1 ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
362
362
FillRate += width * 1 + 1 ;
363
363
}
364
364
if ( width > 1 )
365
365
{
366
366
if ( Control != null )
367
- Control . UWF_Batches ++ ;
367
+ Control . uwfBatches ++ ;
368
368
GUI . DrawTexture ( new Rect ( x , y + 1 , 1 , height - 2 ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
369
369
FillRate += height - 2 ;
370
370
}
@@ -387,22 +387,22 @@ public void DrawRectangle(Pen pen, float x, float y, float width, float height)
387
387
{
388
388
case Drawing2D . DashStyle . Solid :
389
389
if ( Control != null )
390
- Control . UWF_Batches += 2 ;
390
+ Control . uwfBatches += 2 ;
391
391
392
392
GUI . DrawTexture ( new Rect ( x , y , width , pen . Width ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
393
393
GUI . DrawTexture ( new Rect ( x + width - pen . Width , y + pen . Width , pen . Width , height - pen . Width * 2 ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
394
394
FillRate += width * pen . Width + pen . Width * ( height - pen . Width * 2 ) ;
395
395
if ( height > 1 )
396
396
{
397
397
if ( Control != null )
398
- Control . UWF_Batches ++ ;
398
+ Control . uwfBatches ++ ;
399
399
GUI . DrawTexture ( new Rect ( x , y + height - pen . Width , width , pen . Width ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
400
400
FillRate += width * pen . Width + pen . Width ;
401
401
}
402
402
if ( width > 1 )
403
403
{
404
404
if ( Control != null )
405
- Control . UWF_Batches ++ ;
405
+ Control . uwfBatches ++ ;
406
406
GUI . DrawTexture ( new Rect ( x , y + pen . Width , pen . Width , height - pen . Width * 2 ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ;
407
407
FillRate += pen . Width * ( height - pen . Width * 2 ) ;
408
408
}
@@ -416,7 +416,7 @@ public void DrawRectangle(Pen pen, float x, float y, float width, float height)
416
416
if ( i + dash_width > width )
417
417
dash_width = width - i ;
418
418
if ( Control != null )
419
- Control . UWF_Batches += 2 ;
419
+ Control . uwfBatches += 2 ;
420
420
GUI . DrawTexture ( new Rect ( x + i , y , dash_width , pen . Width ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ; // Top.
421
421
GUI . DrawTexture ( new Rect ( x + i , y + height - pen . Width , dash_width , pen . Width ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ; // Bottom.
422
422
FillRate += dash_width * pen . Width * 2 ;
@@ -427,7 +427,7 @@ public void DrawRectangle(Pen pen, float x, float y, float width, float height)
427
427
if ( i + dash_height > height )
428
428
dash_height = height - i ;
429
429
if ( Control != null )
430
- Control . UWF_Batches += 2 ;
430
+ Control . uwfBatches += 2 ;
431
431
GUI . DrawTexture ( new Rect ( x + width - pen . Width , y + i , pen . Width , dash_height ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ; // Right.
432
432
GUI . DrawTexture ( new Rect ( x , y + i , pen . Width , dash_height ) , System . Windows . Forms . ApplicationBehaviour . DefaultSprite ) ; // Left.
433
433
FillRate += pen . Width * dash_height * 2 ;
@@ -470,7 +470,7 @@ public void DrawString(string s, Font font, Color color, float x, float y, float
470
470
if ( string . IsNullOrEmpty ( s ) ) return ;
471
471
472
472
if ( Control != null )
473
- Control . UWF_Batches += 1 ;
473
+ Control . uwfBatches += 1 ;
474
474
FillRate += width * height ;
475
475
476
476
GUI . skin . label . alignment = TextAnchor . UpperLeft ;
@@ -583,7 +583,7 @@ public string DrawTextArea(string s, Font font, Color color, float x, float y, f
583
583
if ( Control == null ) return s ;
584
584
if ( s == null ) s = "" ;
585
585
586
- Control . UWF_Batches ++ ;
586
+ Control . uwfBatches ++ ;
587
587
588
588
GUI . skin . textArea . alignment = TextAnchor . UpperLeft ;
589
589
@@ -619,7 +619,7 @@ public string DrawTextField(string s, Font font, Color color, float x, float y,
619
619
if ( Control == null ) return s ;
620
620
if ( s == null ) s = "" ;
621
621
622
- Control . UWF_Batches ++ ;
622
+ Control . uwfBatches ++ ;
623
623
624
624
GUI . skin . textField . alignment = TextAnchor . UpperLeft ;
625
625
switch ( alignment )
@@ -681,7 +681,7 @@ public void DrawTexture(Texture texture, float x, float y, float width, float he
681
681
if ( texture == null ) return ;
682
682
683
683
if ( Control != null )
684
- Control . UWF_Batches ++ ;
684
+ Control . uwfBatches ++ ;
685
685
686
686
FillRate += width * height ;
687
687
@@ -705,7 +705,7 @@ public void DrawTexture(Texture texture, float x, float y, float width, float he
705
705
{
706
706
if ( Control == null ) return ;
707
707
708
- Control . UWF_Batches ++ ;
708
+ Control . uwfBatches ++ ;
709
709
FillRate += width * height ;
710
710
711
711
mat . color = color . ToUColor ( ) ;
@@ -775,7 +775,7 @@ public void FillRectangle(Color color, float x, float y, float width, float heig
775
775
if ( color . A <= 0 ) return ;
776
776
777
777
if ( Control != null )
778
- Control . UWF_Batches += 1 ;
778
+ Control . uwfBatches += 1 ;
779
779
FillRate += width * height ;
780
780
781
781
GUI . color = color . ToUColor ( ) ;
0 commit comments