trigger_timer.gui 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. script: "/example/trigger_timer.gui_script"
  2. fonts {
  3. name: "text24"
  4. font: "/assets/text24.font"
  5. }
  6. background_color {
  7. x: 0.0
  8. y: 0.0
  9. z: 0.0
  10. w: 0.0
  11. }
  12. nodes {
  13. position {
  14. x: 360.0
  15. y: 430.0
  16. z: 0.0
  17. w: 1.0
  18. }
  19. rotation {
  20. x: 0.0
  21. y: 0.0
  22. z: 0.0
  23. w: 1.0
  24. }
  25. scale {
  26. x: 1.0
  27. y: 1.0
  28. z: 1.0
  29. w: 1.0
  30. }
  31. size {
  32. x: 100.0
  33. y: 40.0
  34. z: 0.0
  35. w: 1.0
  36. }
  37. color {
  38. x: 0.101960786
  39. y: 0.101960786
  40. z: 0.101960786
  41. w: 1.0
  42. }
  43. type: TYPE_TEXT
  44. blend_mode: BLEND_MODE_ALPHA
  45. text: "0"
  46. font: "text24"
  47. id: "counter"
  48. xanchor: XANCHOR_NONE
  49. yanchor: YANCHOR_NONE
  50. pivot: PIVOT_CENTER
  51. outline {
  52. x: 0.0
  53. y: 0.0
  54. z: 0.0
  55. w: 1.0
  56. }
  57. shadow {
  58. x: 1.0
  59. y: 1.0
  60. z: 1.0
  61. w: 1.0
  62. }
  63. adjust_mode: ADJUST_MODE_FIT
  64. line_break: false
  65. layer: ""
  66. inherit_alpha: true
  67. alpha: 1.0
  68. outline_alpha: 0.0
  69. shadow_alpha: 0.0
  70. template_node_child: false
  71. text_leading: 1.0
  72. text_tracking: 0.0
  73. custom_type: 0
  74. enabled: true
  75. visible: true
  76. }
  77. nodes {
  78. position {
  79. x: 360.0
  80. y: 260.0
  81. z: 0.0
  82. w: 1.0
  83. }
  84. rotation {
  85. x: 0.0
  86. y: 0.0
  87. z: 0.0
  88. w: 1.0
  89. }
  90. scale {
  91. x: 1.0
  92. y: 1.0
  93. z: 1.0
  94. w: 1.0
  95. }
  96. size {
  97. x: 600.0
  98. y: 80.0
  99. z: 0.0
  100. w: 1.0
  101. }
  102. color {
  103. x: 0.101960786
  104. y: 0.101960786
  105. z: 0.101960786
  106. w: 1.0
  107. }
  108. type: TYPE_TEXT
  109. blend_mode: BLEND_MODE_ALPHA
  110. text: "Counter ticks every 1s.\n"
  111. "Click to trigger timer callback asynchronously."
  112. font: "text24"
  113. id: "info"
  114. xanchor: XANCHOR_NONE
  115. yanchor: YANCHOR_NONE
  116. pivot: PIVOT_CENTER
  117. outline {
  118. x: 0.0
  119. y: 0.0
  120. z: 0.0
  121. w: 1.0
  122. }
  123. shadow {
  124. x: 1.0
  125. y: 1.0
  126. z: 1.0
  127. w: 1.0
  128. }
  129. adjust_mode: ADJUST_MODE_FIT
  130. line_break: false
  131. layer: ""
  132. inherit_alpha: true
  133. alpha: 1.0
  134. outline_alpha: 0.0
  135. shadow_alpha: 0.0
  136. template_node_child: false
  137. text_leading: 1.0
  138. text_tracking: 0.0
  139. custom_type: 0
  140. enabled: true
  141. visible: true
  142. }
  143. material: "/builtins/materials/gui.material"
  144. adjust_reference: ADJUST_REFERENCE_PARENT
  145. max_nodes: 512