瀏覽代碼

add partial table for particles

mitm001 5 年之前
父節點
當前提交
e0f60e4413

+ 1 - 39
docs/modules/ROOT/pages/jme3/advanced/particle_emitters.adoc

@@ -192,46 +192,8 @@ The effect texture can be one image, or contain a sprite animation – a series
 
 The Material is used together with grayscale texture: The black parts will be transparent and the white parts will be opaque (colored).
 The following effect textures are available by default from `test-data.jar`. You can also load your own textures from your assets directory.
-[cols="3", options="header"]
-|===
-
-<a| Texture Path
-a| Dimension
-a| Preview
-
-<a| Effects/Explosion/Debris.png
-<a| 3*3
-a| image:tutorials:beginner/Debris.png[Debris.png,width="32",height="32"]
-
-<a| Effects/Explosion/flame.png
-<a| 2*2
-a| image:jme3/beginner/flame.png[flame.png,width="32",height="32"]
-
-<a| Effects/Explosion/flash.png
-<a| 2*2
-a| image:jme3/beginner/flash.png[flash.png,width="32",height="32"]
-
-a| Effects/Explosion/roundspark.png
-<a| 1*1
-a| image:jme3/beginner/roundspark.png[roundspark.png,width="32",height="32"]
 
-<a| Effects/Explosion/shockwave.png
-<a| 1*1
-a| image:jme3/beginner/shockwave.png[shockwave.png,width="32",height="32"]
-
-a| Effects/Explosion/smoketrail.png
-<a| 1*3
-a| image:jme3/beginner/smoketrail.png[smoketrail.png,width="32",height="32"]
-
-<a| Effects/Explosion/spark.png
-<a| 1*1
-a| image:jme3/beginner/spark.png[spark.png,width="32",height="32"]
-
-<a| Effects/Smoke/Smoke.png
-a| 1*15
-a| image:jme3/beginner/Smoke.png[Smoke.png,width="96",height="32"]
-
-|===
+include::tutorials:partial$default-particles-table.adoc[]
 
 [TIP]
 ====

+ 1 - 27
docs/modules/tutorials/pages/beginner/hello_effects.adoc

@@ -138,34 +138,8 @@ The fire material is created the same way, just using "`Effects/Explosion/flame.
 === Default Particle Textures
 
 The following particle textures included in `test-data.jar`. You can copy and use them in your own effects.
-[cols="3", options="header"]
-|===
-
-<a| Texture Path
-a| Dimension
-a| Preview
-
-<a| Effects/Explosion/Debris.png
-<a| 3*3
-a| image:beginner/Debris.png[Debris.png,32,32]
-
-<a| Effects/Explosion/flame.png
-<a| 2*2
-a| image:jme3/beginner/flame.png[flame.png,32,32]
 
-<a| Effects/Explosion/shockwave.png
-<a| 1*1
-a| image:jme3/beginner/shockwave.png[shockwave.png,32,32]
-
-a| Effects/Explosion/smoketrail.png
-<a| 1*3
-a| image:jme3/beginner/smoketrail.png[smoketrail.png,32,32]
-
-<a| Effects/Smoke/Smoke.png
-a| 1*15
-a| image:jme3/beginner/Smoke.png[Smoke.png,96,32]
-
-|===
+include::partial$default-particles-table.adoc[]
 
 Copy them into your `assets/Effects` directory to use them.
 

+ 40 - 0
docs/modules/tutorials/partials/default-particles-table.adoc

@@ -0,0 +1,40 @@
+[cols="3", options="header"]
+|===
+
+<a| Texture Path
+a| Dimension
+a| Preview
+
+<a| Effects/Explosion/Debris.png
+<a| 3*3
+a| image:tutorials:beginner/Debris.png[Debris.png,width="32",height="32"]
+
+<a| Effects/Explosion/flame.png
+<a| 2*2
+a| image:jme3/beginner/flame.png[flame.png,width="32",height="32"]
+
+<a| Effects/Explosion/flash.png
+<a| 2*2
+a| image:jme3/beginner/flash.png[flash.png,width="32",height="32"]
+
+a| Effects/Explosion/roundspark.png
+<a| 1*1
+a| image:jme3/beginner/roundspark.png[roundspark.png,width="32",height="32"]
+
+<a| Effects/Explosion/shockwave.png
+<a| 1*1
+a| image:jme3/beginner/shockwave.png[shockwave.png,width="32",height="32"]
+
+a| Effects/Explosion/smoketrail.png
+<a| 1*3
+a| image:jme3/beginner/smoketrail.png[smoketrail.png,width="32",height="32"]
+
+<a| Effects/Explosion/spark.png
+<a| 1*1
+a| image:jme3/beginner/spark.png[spark.png,width="32",height="32"]
+
+<a| Effects/Smoke/Smoke.png
+a| 1*15
+a| image:jme3/beginner/Smoke.png[Smoke.png,width="96",height="32"]
+
+|===