Browse Source

Slight improvement and typos before recording

Jorn Theunissen 6 years ago
parent
commit
695b350322

+ 1 - 3
Tutorials/Tutorials/Basics/GettingTheEntity.cs

@@ -15,7 +15,6 @@ namespace Tutorials.Basics {
             //We store the name of the Entity that we are attached to
             //We store the name of the Entity that we are attached to
             name = Entity.Name;
             name = Entity.Name;
 
 
-
             //We retrieve the parent entity by using the GetParent() command.
             //We retrieve the parent entity by using the GetParent() command.
             Entity parentEntity = Entity.GetParent();
             Entity parentEntity = Entity.GetParent();
 
 
@@ -25,12 +24,11 @@ namespace Tutorials.Basics {
                 parentName = parentEntity.Name;
                 parentName = parentEntity.Name;
             }
             }
 
 
-
             //The above code can be shortened to 1 line by using the '?' operator  
             //The above code can be shortened to 1 line by using the '?' operator  
             parentName = Entity.GetParent()?.Name;
             parentName = Entity.GetParent()?.Name;
         }
         }
 
 
-        //Updates avery frame
+        //Updates every frame
         public override void Update() {
         public override void Update() {
             //Using the 'DebugText.Print' command, we can quickly print information to the screen
             //Using the 'DebugText.Print' command, we can quickly print information to the screen
             DebugText.TextColor = Color.Red;
             DebugText.TextColor = Color.Red;

+ 8 - 4
en/template/styles/main.css

@@ -28,6 +28,10 @@ footer {
   z-index: auto;
   z-index: auto;
 }
 }
 
 
+footer .inner-footer p{
+    max-width: none;
+}
+
 /* Updated style for menu items */
 /* Updated style for menu items */
 
 
 .toc .level1 > li {
 .toc .level1 > li {
@@ -589,12 +593,12 @@ h5{
 .xk-documentation-list .xk-documentation-image img{
 .xk-documentation-list .xk-documentation-image img{
     max-width: 128px;
     max-width: 128px;
 }
 }
+.xk-documentation-list  li:nth-child(1) .xk-documentation-chapter, .xk-documentation-list  li:nth-child(4) .xk-documentation-chapter{
+    padding-left: 20px;
+}
 .xk-documentation-list li:nth-child(2) .xk-documentation-image img, .xk-documentation-list li:nth-child(3) .xk-documentation-image img{
 .xk-documentation-list li:nth-child(2) .xk-documentation-image img, .xk-documentation-list li:nth-child(3) .xk-documentation-image img{
     max-width: 165px;
     max-width: 165px;
-    max-width: 165px;
-}
-.xk-documentation-list  li:nth-child(1) .xk-documentation-chapter, .xk-documentation-list  li:nth-child(4) .xk-documentation-chapter{
-    padding-left: 40px;
+    padding-left: -20px;
 }
 }
 
 
 @media only screen and (max-width: 768px){
 @media only screen and (max-width: 768px){

+ 2 - 3
en/tutorials/csharpbasics/entity.md

@@ -1,11 +1,10 @@
 # Getting the entity 
 # Getting the entity 
-This C# basics tutorial covers how to get the entity object.
+You can find this sample in the tutorial project: **Scenes** -> **Basics** -> **1-Getting an entity** 
 
 
 ## Explanation
 ## Explanation
-When a script is attached to an entity in the scene, we can access all properties of that Entity by using the 'Entity' property. We can for instance get the entity's name or we can check if the entity has a parent in the scene.
+This C# basics tutorial covers how to get the entity object. When a script is attached to an entity in the scene, we can access all properties of that Entity by using the 'Entity' property. We can for instance get the entity's name or we can check if the entity has a parent in the scene.
 
 
 ![Getting the entity example](media/getting-the-entity.png)
 ![Getting the entity example](media/getting-the-entity.png)
 
 
 ## Code
 ## Code
-You can find this sample in the tutorial project 
 [!code-csharp[Entity](..\..\..\Tutorials\Tutorials\Basics\GettingTheEntity.cs)]
 [!code-csharp[Entity](..\..\..\Tutorials\Tutorials\Basics\GettingTheEntity.cs)]

+ 1 - 1
en/tutorials/csharpbasics/index.md

@@ -10,7 +10,7 @@ You can try out each individual script in by creating a new project and use the
 * [Editor properties](editorproperties.md) 
 * [Editor properties](editorproperties.md) 
 * [Get component](getcomponent.md) 
 * [Get component](getcomponent.md) 
 * [DeltaTime](deltaTime.md) 
 * [DeltaTime](deltaTime.md) 
-* [Instianting entities](instantiatingentities.md) 
+* [Instantiating entities](instantiatingentities.md) 
 * [Destroing entities](destroyingentities.md) 
 * [Destroing entities](destroyingentities.md) 
 * [Look at](lookAt.md) 
 * [Look at](lookAt.md) 
 * [GetKey](getKey.md) 
 * [GetKey](getKey.md)