Remove trailing space characters in the formatting script

This commit is contained in:
Aaron Franke
2020-06-17 14:53:10 -04:00
parent d3317cc91d
commit 35d44b5d85
36 changed files with 53 additions and 51 deletions

View File

@@ -96,7 +96,7 @@ public class Node25D : Node2D, IComparable<Node25D>
{
spatialNode = GetChild<Spatial>(0);
}
GlobalPosition = transform25D.FlatPosition;
}

View File

@@ -59,7 +59,7 @@ public class Viewport25D : Control
{
return;
}
// View mode polling.
var viewModeChangedThisFrame = false;
var newViewMode = viewModeButtonGroup.GetPressedButton().GetIndex();
@@ -69,7 +69,7 @@ public class Viewport25D : Control
viewModeChangedThisFrame = true;
RecursiveChangeViewMode(GetTree().EditedSceneRoot);
}
// Zooming.
if (Input.IsMouseButtonPressed((int)ButtonList.WheelUp))
{
@@ -80,11 +80,11 @@ public class Viewport25D : Control
zoomLevel -= 1;
}
float zoom = GetZoomAmount();
// Viewport size.
Vector2 size = GetGlobalRect().Size;
viewport2d.Size = size;
// Viewport transform.
Transform2D viewportTrans = Transform2D.Identity;
viewportTrans.x *= zoom;
@@ -92,7 +92,7 @@ public class Viewport25D : Control
viewportTrans.origin = viewportTrans.BasisXform(viewportCenter) + size / 2;
viewport2d.CanvasTransform = viewportTrans;
viewportOverlay.CanvasTransform = viewportTrans;
// Delete unused gizmos.
var selection = editorInterface.GetSelection().GetSelectedNodes();
var overlayChildren = viewportOverlay.GetChildren();

View File

@@ -18,7 +18,7 @@ rect_min_size = Vector2( 500, 50 )
text = "
Controls: WASD to move, Space to jump, R to reset, Shift to walk, T to toggle isometric controls, C to view cube demo, Tab to toggle hints.
UIOJKL to change view mode. U = Forty Five deg, I = Isometric,
UIOJKL to change view mode. U = Forty Five deg, I = Isometric,
O = Top Down, J = Front Side, K = Oblique Y, L = Oblique Z
Not every view mode is meant to be good, it's just to showcase what the system can do.

View File

@@ -18,7 +18,7 @@ rect_min_size = Vector2( 500, 50 )
text = "
Controls: WASDQE to rotate, R to reset, C to return to the world, Tab to toggle hints.
UIOKL to change view mode. U = Forty Five deg, I = Isometric,
UIOKL to change view mode. U = Forty Five deg, I = Isometric,
O = Top Down, K = Oblique Y, L = Oblique Z
Not every view mode is meant to be good, it's just to showcase what the system can do.

View File

@@ -84,7 +84,7 @@ public class Main : Node
// Choose the velocity.
mobInstance.SetLinearVelocity(new Vector2(RandRange(150f, 250f), 0).Rotated(direction));
GetNode("HUD").Connect("StartGame", mobInstance, "OnStartGame");
}
}

View File

@@ -23,7 +23,7 @@ public class Mob : RigidBody2D
{
QueueFree();
}
public void OnStartGame()
{
QueueFree();