3d_labels_and_texts.tscn 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. [gd_scene load_steps=37 format=3 uid="uid://crd3is1f8w55h"]
  2. [ext_resource type="FontFile" uid="uid://cw4codbiaecjh" path="res://fonts/Xolonium-Regular.ttf" id="3_ds7iv"]
  3. [ext_resource type="FontFile" uid="uid://rv6to2i5stmy" path="res://fonts/Xolonium-Regular-MSDF.ttf" id="4_omdth"]
  4. [ext_resource type="FontFile" uid="uid://ueofyxhwry0c" path="res://fonts/Xolonium-Regular-MSDF-Mipmaps.ttf" id="5_syv27"]
  5. [ext_resource type="FontFile" uid="uid://ceawygbjffpls" path="res://fonts/Xolonium-Regular-Mipmaps.ttf" id="6_ewmy5"]
  6. [ext_resource type="Texture2D" uid="uid://bpgdsvb3lfg6l" path="res://textures/textmesh_texture.png" id="7_w00di"]
  7. [ext_resource type="FontFile" uid="uid://cb35jtyk02goi" path="res://fonts/fontello-godot.woff2" id="7_wvpht"]
  8. [ext_resource type="Shader" path="res://curvature.gdshader" id="8_2gwag"]
  9. [ext_resource type="Script" path="res://label_3d_layout.gd" id="8_rvw0p"]
  10. [ext_resource type="Texture2D" uid="uid://chjqieyps5n5r" path="res://textures/checker.png" id="14"]
  11. [ext_resource type="Script" path="res://3d_labels_and_texts.gd" id="18"]
  12. [sub_resource type="ProceduralSkyMaterial" id="9"]
  13. [sub_resource type="Sky" id="10"]
  14. sky_material = SubResource("9")
  15. [sub_resource type="Environment" id="11"]
  16. background_mode = 2
  17. sky = SubResource("10")
  18. [sub_resource type="Animation" id="Animation_qdnt6"]
  19. length = 0.001
  20. tracks/0/type = "value"
  21. tracks/0/imported = false
  22. tracks/0/enabled = true
  23. tracks/0/path = NodePath("Testers/Label3DFontTypes/AnimationOrigin:position")
  24. tracks/0/interp = 1
  25. tracks/0/loop_wrap = true
  26. tracks/0/keys = {
  27. "times": PackedFloat32Array(0),
  28. "transitions": PackedFloat32Array(1),
  29. "update": 0,
  30. "values": [Vector3(0, 0, 0)]
  31. }
  32. [sub_resource type="Animation" id="12"]
  33. resource_name = "move"
  34. length = 10.0
  35. loop_mode = 1
  36. tracks/0/type = "value"
  37. tracks/0/imported = false
  38. tracks/0/enabled = true
  39. tracks/0/path = NodePath("Testers/Label3DFontTypes/AnimationOrigin:position")
  40. tracks/0/interp = 1
  41. tracks/0/loop_wrap = true
  42. tracks/0/keys = {
  43. "times": PackedFloat32Array(0, 5),
  44. "transitions": PackedFloat32Array(-2, -2),
  45. "update": 0,
  46. "values": [Vector3(2, 0, 0), Vector3(-13, 0, 0)]
  47. }
  48. [sub_resource type="AnimationLibrary" id="AnimationLibrary_ecfcr"]
  49. _data = {
  50. "RESET": SubResource("Animation_qdnt6"),
  51. "move": SubResource("12")
  52. }
  53. [sub_resource type="StandardMaterial3D" id="13"]
  54. diffuse_mode = 1
  55. albedo_texture = ExtResource("14")
  56. uv1_scale = Vector3(32, 32, 1)
  57. texture_filter = 5
  58. [sub_resource type="PlaneMesh" id="14"]
  59. material = SubResource("13")
  60. size = Vector2(128, 128)
  61. [sub_resource type="BoxMesh" id="BoxMesh_770hc"]
  62. size = Vector3(0.125, 1.5, 2.5)
  63. [sub_resource type="BoxMesh" id="BoxMesh_juuw1"]
  64. [sub_resource type="SphereMesh" id="SphereMesh_wsjfy"]
  65. [sub_resource type="FontVariation" id="FontVariation_hue2h"]
  66. spacing_glyph = -8
  67. [sub_resource type="TextMesh" id="TextMesh_xlu0q"]
  68. text = ""
  69. font = ExtResource("7_wvpht")
  70. font_size = 64
  71. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ri5nw"]
  72. albedo_color = Color(0.356863, 0.301961, 1, 1)
  73. [sub_resource type="TextMesh" id="TextMesh_u3elb"]
  74. text = ""
  75. font = ExtResource("7_wvpht")
  76. font_size = 64
  77. [sub_resource type="TextMesh" id="TextMesh_u00sq"]
  78. text = "TextMesh (depth = 0.0)"
  79. font_size = 32
  80. depth = 0.0
  81. [sub_resource type="TextMesh" id="TextMesh_cf5wd"]
  82. text = "TextMesh"
  83. font_size = 32
  84. [sub_resource type="TextMesh" id="TextMesh_0mhsg"]
  85. text = "TextMesh (low detail)"
  86. font_size = 32
  87. curve_step = 10.0
  88. [sub_resource type="TextMesh" id="TextMesh_ddkjo"]
  89. text = "Additive Blending"
  90. font_size = 32
  91. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_iyglb"]
  92. blend_mode = 1
  93. albedo_color = Color(0.776471, 1, 0.45098, 1)
  94. [sub_resource type="TextMesh" id="TextMesh_idsby"]
  95. text = "Metallic"
  96. font_size = 32
  97. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mdg0l"]
  98. albedo_color = Color(1, 0.345098, 0.760784, 1)
  99. metallic = 1.0
  100. roughness = 0.0
  101. [sub_resource type="TextMesh" id="TextMesh_0sjgn"]
  102. text = "Curvature Shader"
  103. font_size = 32
  104. depth = 0.1
  105. [sub_resource type="ShaderMaterial" id="ShaderMaterial_iuh2c"]
  106. render_priority = 0
  107. shader = ExtResource("8_2gwag")
  108. [sub_resource type="TextMesh" id="TextMesh_fqc7s"]
  109. text = "Textured TextMesh"
  110. font_size = 32
  111. depth = 0.1
  112. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_i3bnm"]
  113. shading_mode = 0
  114. albedo_texture = ExtResource("7_w00di")
  115. texture_filter = 0
  116. [node name="AntiAliasingTestScene" type="WorldEnvironment"]
  117. environment = SubResource("11")
  118. script = ExtResource("18")
  119. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  120. autoplay = "move"
  121. libraries = {
  122. "": SubResource("AnimationLibrary_ecfcr")
  123. }
  124. [node name="Plane" type="MeshInstance3D" parent="."]
  125. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -22)
  126. layers = 2
  127. mesh = SubResource("14")
  128. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
  129. transform = Transform3D(0.909487, -0.23874, 0.340349, 0, 0.818672, 0.574262, -0.415733, -0.522284, 0.744571, 3.9506, 3.39961, 3.54442)
  130. shadow_enabled = true
  131. shadow_bias = 0.04
  132. shadow_blur = 1.5
  133. directional_shadow_mode = 0
  134. directional_shadow_fade_start = 1.0
  135. directional_shadow_max_distance = 24.0
  136. [node name="CameraHolder" type="Node3D" parent="."]
  137. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.125, 0)
  138. [node name="RotationX" type="Node3D" parent="CameraHolder"]
  139. [node name="Camera3D" type="Camera3D" parent="CameraHolder/RotationX"]
  140. fov = 70.0
  141. [node name="Testers" type="Node3D" parent="."]
  142. [node name="BasicLabel3D" type="Node3D" parent="Testers"]
  143. [node name="Label3D" type="Label3D" parent="Testers/BasicLabel3D"]
  144. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.6, 0)
  145. texture_filter = 5
  146. outline_modulate = Color(0.270588, 0.270588, 0.270588, 1)
  147. text = "Hello from Label3D!
  148. Line breaks and/or autowrap can be used to write multiline text."
  149. outline_size = 3
  150. autowrap_mode = 2
  151. width = 460.0
  152. [node name="Wall" type="MeshInstance3D" parent="Testers/BasicLabel3D"]
  153. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0654575, 0.5, 0)
  154. mesh = SubResource("BoxMesh_770hc")
  155. [node name="TwoSidedLabel3D" type="Node3D" parent="Testers"]
  156. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4)
  157. [node name="Front" type="Label3D" parent="Testers/TwoSidedLabel3D"]
  158. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.7, 0)
  159. double_sided = false
  160. texture_filter = 5
  161. modulate = Color(0.686275, 0.92549, 1, 1)
  162. text = "Rotate to the other side…"
  163. font_size = 48
  164. outline_size = 3
  165. vertical_alignment = 0
  166. [node name="Back" type="Label3D" parent="Testers/TwoSidedLabel3D"]
  167. transform = Transform3D(1.31134e-07, 0, -1, 0, 1, 0, 1, 0, 1.31134e-07, 0, 0.7, 0)
  168. double_sided = false
  169. texture_filter = 5
  170. modulate = Color(1, 0.929412, 0.607843, 1)
  171. text = "Rotate to the other side…
  172. (second Label3D node)"
  173. font_size = 48
  174. outline_size = 3
  175. vertical_alignment = 0
  176. [node name="ShadedLabel3D" type="Node3D" parent="Testers"]
  177. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -8)
  178. [node name="AlphaCutDisabled" type="Label3D" parent="Testers/ShadedLabel3D"]
  179. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.3, 0)
  180. shaded = true
  181. texture_filter = 5
  182. modulate = Color(0.607843, 1, 1, 1)
  183. outline_modulate = Color(0, 0, 0, 0.501961)
  184. text = "Alpha Cut = Disabled
  185. I receive shadows"
  186. font_size = 48
  187. outline_size = 3
  188. line_spacing = -6.0
  189. [node name="AlphaCutDiscard" type="Label3D" parent="Testers/ShadedLabel3D"]
  190. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.1, 0)
  191. cast_shadow = 1
  192. shaded = true
  193. alpha_cut = 1
  194. texture_filter = 5
  195. modulate = Color(0.843137, 0.623529, 1, 1)
  196. outline_modulate = Color(0, 0, 0, 0.501961)
  197. text = "Alpha Cut = Discard
  198. I cast and receive shadows
  199. (but can't have partial transparency)"
  200. font_size = 44
  201. outline_size = 3
  202. line_spacing = -6.0
  203. [node name="AlphaCutOpaquePrepass" type="Label3D" parent="Testers/ShadedLabel3D"]
  204. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.9, 0)
  205. cast_shadow = 1
  206. shaded = true
  207. alpha_cut = 2
  208. texture_filter = 5
  209. modulate = Color(0.678431, 1, 0.713726, 1)
  210. outline_modulate = Color(0, 0, 0, 0.501961)
  211. text = "Alpha Cut = Opaque Prepass
  212. I cast and receive shadows"
  213. font_size = 48
  214. outline_size = 3
  215. line_spacing = -6.0
  216. [node name="MeshInstance3D" type="MeshInstance3D" parent="Testers/ShadedLabel3D"]
  217. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 2.71175, 1.61301)
  218. transparency = 0.33
  219. mesh = SubResource("BoxMesh_juuw1")
  220. [node name="Label3DFontTypes" type="Node3D" parent="Testers"]
  221. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -12)
  222. [node name="AnimationOrigin" type="Node3D" parent="Testers/Label3DFontTypes"]
  223. [node name="Raster" type="Label3D" parent="Testers/Label3DFontTypes/AnimationOrigin"]
  224. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.4, 1)
  225. texture_filter = 5
  226. text = "Label3D
  227. (raster)"
  228. font = ExtResource("3_ds7iv")
  229. font_size = 40
  230. outline_size = 9
  231. [node name="MSDF" type="Label3D" parent="Testers/Label3DFontTypes/AnimationOrigin"]
  232. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.4, -1)
  233. texture_filter = 5
  234. text = "Label3D
  235. (MSDF)"
  236. font = ExtResource("4_omdth")
  237. font_size = 40
  238. outline_size = 9
  239. [node name="RasterMipmaps" type="Label3D" parent="Testers/Label3DFontTypes/AnimationOrigin"]
  240. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.8, 1)
  241. texture_filter = 5
  242. text = "Label3D
  243. (raster +
  244. mipmaps)"
  245. font = ExtResource("6_ewmy5")
  246. font_size = 40
  247. outline_size = 9
  248. [node name="MSDFMipmaps" type="Label3D" parent="Testers/Label3DFontTypes/AnimationOrigin"]
  249. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.8, -1)
  250. texture_filter = 5
  251. text = "Label3D
  252. (MSDF +
  253. mipmaps)"
  254. font = ExtResource("5_syv27")
  255. font_size = 40
  256. outline_size = 9
  257. [node name="Label3DBillboardModes" type="Node3D" parent="Testers"]
  258. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -16)
  259. [node name="Disabled" type="Label3D" parent="Testers/Label3DBillboardModes"]
  260. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.2, 1)
  261. texture_filter = 5
  262. modulate = Color(0.996078, 1, 0.333333, 1)
  263. text = "Disabled"
  264. font_size = 48
  265. outline_size = 3
  266. [node name="Enabled" type="Label3D" parent="Testers/Label3DBillboardModes"]
  267. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.2, -1)
  268. billboard = 1
  269. texture_filter = 5
  270. modulate = Color(0.0784314, 0, 0.588235, 1)
  271. outline_modulate = Color(1, 1, 1, 0.301961)
  272. text = "Enabled"
  273. font_size = 48
  274. outline_size = 3
  275. [node name="YBillboard" type="Label3D" parent="Testers/Label3DBillboardModes"]
  276. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.7, 0)
  277. billboard = 2
  278. texture_filter = 5
  279. modulate = Color(1, 0.313726, 0.454902, 1)
  280. outline_modulate = Color(0.384314, 0.188235, 0.188235, 1)
  281. text = "Y-Billboard"
  282. font_size = 48
  283. outline_size = 3
  284. [node name="Label3DDistanceFade" type="Node3D" parent="Testers"]
  285. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -20)
  286. [node name="NoDistanceFade" type="Label3D" parent="Testers/Label3DDistanceFade"]
  287. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.3, 1)
  288. texture_filter = 5
  289. modulate = Color(1, 0.741176, 0.831373, 1)
  290. text = "No
  291. Distance Fade"
  292. font_size = 40
  293. outline_size = 4
  294. [node name="DistanceFade" type="Label3D" parent="Testers/Label3DDistanceFade"]
  295. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.3, -1)
  296. visibility_range_end = 5.0
  297. visibility_range_end_margin = 2.5
  298. visibility_range_fade_mode = 1
  299. texture_filter = 5
  300. modulate = Color(0.32549, 1, 0.858824, 1)
  301. text = "With
  302. Distance Fade"
  303. font_size = 40
  304. outline_size = 4
  305. [node name="NoDistanceFadeBillboard" type="Label3D" parent="Testers/Label3DDistanceFade"]
  306. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.1, 1)
  307. billboard = 1
  308. texture_filter = 5
  309. modulate = Color(1, 0.741176, 0.831373, 1)
  310. text = "No
  311. Distance Fade
  312. (Billboard)"
  313. font_size = 40
  314. outline_size = 4
  315. [node name="DistanceFadeBillboard" type="Label3D" parent="Testers/Label3DDistanceFade"]
  316. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.1, -1)
  317. visibility_range_end = 5.0
  318. visibility_range_end_margin = 2.5
  319. visibility_range_fade_mode = 1
  320. billboard = 1
  321. texture_filter = 5
  322. modulate = Color(0.32549, 1, 0.858824, 1)
  323. text = "With
  324. Distance Fade
  325. (Billboard)"
  326. font_size = 40
  327. outline_size = 4
  328. [node name="DistanceFadeFixedSize" type="Label3D" parent="Testers/Label3DDistanceFade"]
  329. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -0.000778437, 0.50287, -1.90735e-05)
  330. visibility_range_end = 5.0
  331. visibility_range_end_margin = 2.5
  332. visibility_range_fade_mode = 1
  333. pixel_size = 0.001
  334. billboard = 1
  335. fixed_size = true
  336. texture_filter = 5
  337. modulate = Color(0.760784, 0.690196, 1, 1)
  338. text = "With
  339. Distance Fade
  340. (Billboard + Fixed Size)"
  341. font_size = 40
  342. outline_size = 4
  343. [node name="Label3DDepthTest" type="Node3D" parent="Testers"]
  344. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -24)
  345. [node name="WithDepthTest" type="Label3D" parent="Testers/Label3DDepthTest"]
  346. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.5, 1)
  347. texture_filter = 5
  348. modulate = Color(0.623529, 0.784314, 1, 1)
  349. text = "With Depth Test"
  350. font_size = 40
  351. outline_size = 4
  352. [node name="NoDepthTest" type="Label3D" parent="Testers/Label3DDepthTest"]
  353. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.5, -1)
  354. no_depth_test = true
  355. texture_filter = 5
  356. modulate = Color(1, 0.607843, 0.290196, 1)
  357. text = "No Depth Test"
  358. font_size = 40
  359. outline_size = 4
  360. [node name="NoDepthTestXray" type="Label3D" parent="Testers/Label3DDepthTest"]
  361. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1, -1)
  362. no_depth_test = true
  363. texture_filter = 5
  364. modulate = Color(1, 0.607843, 0.290196, 0.25098)
  365. outline_modulate = Color(0, 0, 0, 0.25098)
  366. text = "No Depth Test
  367. (X-Ray with second Label3D)"
  368. outline_size = 4
  369. [node name="DepthTestXray" type="Label3D" parent="Testers/Label3DDepthTest"]
  370. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1, -1)
  371. texture_filter = 5
  372. modulate = Color(1, 0.607843, 0.290196, 1)
  373. text = "No Depth Test
  374. (X-Ray with second Label3D)"
  375. outline_size = 4
  376. [node name="MeshInstance3D" type="MeshInstance3D" parent="Testers/Label3DDepthTest"]
  377. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.9, 0.5, 0)
  378. mesh = SubResource("SphereMesh_wsjfy")
  379. [node name="Label3DIcons" type="Node3D" parent="Testers"]
  380. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -28)
  381. [node name="Monochrome" type="Label3D" parent="Testers/Label3DIcons"]
  382. transform = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 0, 0.4, 1)
  383. cast_shadow = 1
  384. billboard = 1
  385. alpha_cut = 1
  386. texture_filter = 5
  387. outline_render_priority = 1
  388. text = ""
  389. font = ExtResource("7_wvpht")
  390. font_size = 128
  391. outline_size = 6
  392. [node name="Monochrome2" type="Label3D" parent="Testers/Label3DIcons"]
  393. transform = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 0, 0.4, 0)
  394. cast_shadow = 1
  395. billboard = 1
  396. alpha_cut = 1
  397. texture_filter = 5
  398. outline_render_priority = 1
  399. text = ""
  400. font = ExtResource("7_wvpht")
  401. font_size = 128
  402. outline_size = 6
  403. [node name="Monochrome3" type="Label3D" parent="Testers/Label3DIcons"]
  404. transform = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 0, 0.4, -1)
  405. cast_shadow = 1
  406. billboard = 1
  407. alpha_cut = 1
  408. texture_filter = 5
  409. outline_render_priority = 1
  410. text = ""
  411. font = ExtResource("7_wvpht")
  412. font_size = 128
  413. outline_size = 6
  414. [node name="ColorBlue" type="Label3D" parent="Testers/Label3DIcons"]
  415. transform = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 0, 1.3, 0)
  416. cast_shadow = 1
  417. double_sided = false
  418. alpha_cut = 1
  419. texture_filter = 5
  420. modulate = Color(0.278431, 0.54902, 0.74902, 1)
  421. text = ""
  422. font = ExtResource("7_wvpht")
  423. font_size = 96
  424. [node name="ColorWhite" type="Label3D" parent="Testers/Label3DIcons"]
  425. transform = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 0.001, 1.3, 0)
  426. cast_shadow = 1
  427. double_sided = false
  428. alpha_cut = 1
  429. texture_filter = 5
  430. text = ""
  431. font = ExtResource("7_wvpht")
  432. font_size = 96
  433. [node name="ColorGray" type="Label3D" parent="Testers/Label3DIcons"]
  434. transform = Transform3D(0, 0, 1, 0, 1, 0, -1, 0, 0, 0.002, 1.3, 0)
  435. cast_shadow = 1
  436. double_sided = false
  437. alpha_cut = 1
  438. texture_filter = 5
  439. modulate = Color(0.027451, 0.027451, 0.027451, 1)
  440. text = ""
  441. font = ExtResource("7_wvpht")
  442. font_size = 96
  443. [node name="Label3DHealthBar" type="Node3D" parent="Testers"]
  444. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -32)
  445. script = ExtResource("8_rvw0p")
  446. [node name="Name" type="Label3D" parent="Testers/Label3DHealthBar"]
  447. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.4, 0)
  448. extra_cull_margin = 1.0
  449. offset = Vector2(-160, 0)
  450. billboard = 1
  451. texture_filter = 5
  452. text = "Example"
  453. font = ExtResource("5_syv27")
  454. outline_size = 4
  455. horizontal_alignment = 0
  456. width = 230.0
  457. [node name="Health" type="Label3D" parent="Testers/Label3DHealthBar"]
  458. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.4, 0)
  459. extra_cull_margin = 1.0
  460. offset = Vector2(120, 0)
  461. billboard = 1
  462. texture_filter = 5
  463. modulate = Color(0.8, 1, 0.4, 1)
  464. outline_modulate = Color(0.15, 0.2, 0.15, 1)
  465. text = "89%"
  466. font = ExtResource("5_syv27")
  467. outline_size = 4
  468. [node name="HealthBarForeground" type="Label3D" parent="Testers/Label3DHealthBar"]
  469. transform = Transform3D(-1.74846e-07, 0, 1, 0, 1, 0, -4, 0, -4.37114e-08, 0, 0.4, 0)
  470. extra_cull_margin = 1.0
  471. offset = Vector2(-45, -35)
  472. billboard = 1
  473. texture_filter = 5
  474. modulate = Color(0.8, 1, 0.4, 1)
  475. outline_modulate = Color(0.15, 0.2, 0.15, 1)
  476. text = "|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
  477. font = SubResource("FontVariation_hue2h")
  478. font_size = 16
  479. outline_size = 0
  480. horizontal_alignment = 0
  481. [node name="HealthBarBackground" type="Label3D" parent="Testers/Label3DHealthBar"]
  482. transform = Transform3D(-1.69382e-07, 0, 1, 0, 1, 0, -3.875, 0, -4.37114e-08, 0, 0.4, 0)
  483. extra_cull_margin = 1.0
  484. offset = Vector2(0, -35)
  485. billboard = 1
  486. texture_filter = 5
  487. render_priority = -1
  488. outline_render_priority = -2
  489. modulate = Color(0.15, 0.2, 0.15, 1)
  490. outline_modulate = Color(0.15, 0.2, 0.15, 1)
  491. text = "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
  492. font = SubResource("FontVariation_hue2h")
  493. font_size = 16
  494. outline_size = 6
  495. [node name="Name2" type="Label" parent="Testers/Label3DHealthBar"]
  496. offset_left = 16.0
  497. offset_top = 16.0
  498. offset_right = 193.0
  499. offset_bottom = 47.0
  500. text = "Name"
  501. vertical_alignment = 1
  502. [node name="LineEdit" type="LineEdit" parent="Testers/Label3DHealthBar"]
  503. offset_left = 88.0
  504. offset_top = 16.0
  505. offset_right = 236.0
  506. offset_bottom = 47.0
  507. text = "Example"
  508. caret_blink = true
  509. [node name="TextMesh" type="Node3D" parent="Testers"]
  510. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, -36)
  511. [node name="IconAudio" type="MeshInstance3D" parent="Testers/TextMesh"]
  512. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.4, 0.5)
  513. mesh = SubResource("TextMesh_xlu0q")
  514. surface_material_override/0 = SubResource("StandardMaterial3D_ri5nw")
  515. [node name="IconSuccess" type="MeshInstance3D" parent="Testers/TextMesh"]
  516. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.4, -0.5)
  517. mesh = SubResource("TextMesh_u3elb")
  518. surface_material_override/0 = SubResource("StandardMaterial3D_ri5nw")
  519. [node name="NoDepth" type="MeshInstance3D" parent="Testers/TextMesh"]
  520. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.9, 0)
  521. mesh = SubResource("TextMesh_u00sq")
  522. surface_material_override/0 = SubResource("StandardMaterial3D_ri5nw")
  523. [node name="Text" type="MeshInstance3D" parent="Testers/TextMesh"]
  524. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.5, 0)
  525. mesh = SubResource("TextMesh_cf5wd")
  526. surface_material_override/0 = SubResource("StandardMaterial3D_ri5nw")
  527. [node name="LowDetail" type="MeshInstance3D" parent="Testers/TextMesh"]
  528. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.1, 0)
  529. mesh = SubResource("TextMesh_0mhsg")
  530. surface_material_override/0 = SubResource("StandardMaterial3D_ri5nw")
  531. [node name="TextMeshEffects" type="Node3D" parent="Testers"]
  532. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, -40)
  533. [node name="AdditiveBlending" type="MeshInstance3D" parent="Testers/TextMeshEffects"]
  534. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.1, 0)
  535. mesh = SubResource("TextMesh_ddkjo")
  536. surface_material_override/0 = SubResource("StandardMaterial3D_iyglb")
  537. [node name="Metallic" type="MeshInstance3D" parent="Testers/TextMeshEffects"]
  538. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.5, 0)
  539. mesh = SubResource("TextMesh_idsby")
  540. surface_material_override/0 = SubResource("StandardMaterial3D_mdg0l")
  541. [node name="CurvatureShader" type="MeshInstance3D" parent="Testers/TextMeshEffects"]
  542. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.9, 0)
  543. mesh = SubResource("TextMesh_0sjgn")
  544. surface_material_override/0 = SubResource("ShaderMaterial_iuh2c")
  545. [node name="TextMeshTexture" type="Node3D" parent="Testers"]
  546. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, -44)
  547. [node name="MeshInstance3D" type="MeshInstance3D" parent="Testers/TextMeshTexture"]
  548. transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.1, 0)
  549. mesh = SubResource("TextMesh_fqc7s")
  550. surface_material_override/0 = SubResource("StandardMaterial3D_i3bnm")
  551. [node name="TestName" type="Label" parent="."]
  552. anchors_preset = 7
  553. anchor_left = 0.5
  554. anchor_top = 1.0
  555. anchor_right = 0.5
  556. anchor_bottom = 1.0
  557. offset_left = -192.0
  558. offset_top = -58.0
  559. offset_right = 192.0
  560. offset_bottom = -24.0
  561. grow_horizontal = 2
  562. grow_vertical = 0
  563. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  564. theme_override_constants/outline_size = 7
  565. theme_override_font_sizes/font_size = 24
  566. horizontal_alignment = 1
  567. [node name="Previous" type="Button" parent="."]
  568. anchors_preset = 2
  569. anchor_top = 1.0
  570. anchor_bottom = 1.0
  571. offset_left = 24.0
  572. offset_top = -55.0
  573. offset_right = 135.0
  574. offset_bottom = -24.0
  575. grow_vertical = 0
  576. text = "« Previous"
  577. [node name="Next" type="Button" parent="."]
  578. anchors_preset = 3
  579. anchor_left = 1.0
  580. anchor_top = 1.0
  581. anchor_right = 1.0
  582. anchor_bottom = 1.0
  583. offset_left = -107.0
  584. offset_top = -55.0
  585. offset_right = -24.0
  586. offset_bottom = -24.0
  587. grow_horizontal = 0
  588. grow_vertical = 0
  589. text = "Next »"
  590. [connection signal="text_changed" from="Testers/Label3DHealthBar/LineEdit" to="Testers/Label3DHealthBar" method="_on_line_edit_text_changed"]
  591. [connection signal="text_submitted" from="Testers/Label3DHealthBar/LineEdit" to="." method="_on_line_edit_text_submitted"]
  592. [connection signal="pressed" from="Previous" to="." method="_on_previous_pressed"]
  593. [connection signal="pressed" from="Next" to="." method="_on_next_pressed"]