Browse Source

Fix punctuation in custom_mouse_cursor

Fix punctuation in custom_mouse_cursor.
corrigentia 6 years ago
parent
commit
b123c06783
1 changed files with 9 additions and 9 deletions
  1. 9 9
      tutorials/inputs/custom_mouse_cursor.rst

+ 9 - 9
tutorials/inputs/custom_mouse_cursor.rst

@@ -8,7 +8,7 @@ You might want to change the appearance of the mouse cursor in your game in orde
 1. Using project settings
 1. Using project settings
 2. Using a script
 2. Using a script
 
 
-Using project settings is a simpler but more limited way to customize the mouse cursor. The second way is more customizable but involves scripting.
+Using project settings is a simpler (but more limited) way to customize the mouse cursor. The second way is more customizable, but involves scripting.
 
 
 Using project settings
 Using project settings
 ----------------------
 ----------------------
@@ -32,31 +32,31 @@ Create a Node and attach the following script.
 
 
     extends Node
     extends Node
 
 
-    # Load the custom images for the mouse cursor
+    # Load the custom images for the mouse cursor.
     var arrow = load("res://arrow.png")
     var arrow = load("res://arrow.png")
     var beam = load("res://beam.png")
     var beam = load("res://beam.png")
 
 
     func _ready():
     func _ready():
-        # Changes only the arrow shape of the cursor
-        # This is similar to changing it in the project settings
+        # Changes only the arrow shape of the cursor.
+        # This is similar to changing it in the project settings.
         Input.set_custom_mouse_cursor(arrow)
         Input.set_custom_mouse_cursor(arrow)
 
 
-        # Changes a specific shape of the cursor (here the IBeam shape)
+        # Changes a specific shape of the cursor (here, the I-beam shape).
         Input.set_custom_mouse_cursor(beam, Input.CURSOR_IBEAM)
         Input.set_custom_mouse_cursor(beam, Input.CURSOR_IBEAM)
 
 
  .. code-tab:: csharp
  .. code-tab:: csharp
 
 
     public override void _Ready()
     public override void _Ready()
     {
     {
-        // Load the custom images for the mouse cursor
+        // Load the custom images for the mouse cursor.
         var arrow = ResourceLoader.Load("res://arrow.png");
         var arrow = ResourceLoader.Load("res://arrow.png");
         var beam = ResourceLoader.Load("res://beam.png");
         var beam = ResourceLoader.Load("res://beam.png");
 
 
-        // Changes only the arrow shape of the cursor
-        // This is similar to changing it in the project settings
+        // Changes only the arrow shape of the cursor.
+        // This is similar to changing it in the project settings.
         Input.SetCustomMouseCursor(arrow);
         Input.SetCustomMouseCursor(arrow);
 
 
-        // Changes a specific shape of the cursor (here the IBeam shape)
+        // Changes a specific shape of the cursor (here, the I-beam shape).
         Input.SetCustomMouseCursor(beam, Input.CursorShape.Ibeam);
         Input.SetCustomMouseCursor(beam, Input.CursorShape.Ibeam);
     }
     }