gui.tscn 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. [gd_scene load_steps=10 format=2]
  2. [ext_resource path="res://display/gui.gd" type="Script" id=1]
  3. [ext_resource path="res://font/square.tres" type="DynamicFont" id=2]
  4. [sub_resource type="Shader" id=1]
  5. code = "shader_type canvas_item;
  6. render_mode blend_mix;
  7. uniform vec4 t_color:hint_color;
  8. void fragment(){
  9. COLOR=vec4(t_color);
  10. }"
  11. [sub_resource type="ShaderMaterial" id=2]
  12. shader = SubResource( 1 )
  13. shader_param/t_color = Color( 0.0627451, 0.0470588, 0.188235, 0.776471 )
  14. [sub_resource type="ImageTexture" id=3]
  15. size = Vector2( 500, 600 )
  16. [sub_resource type="StyleBoxLine" id=4]
  17. color = Color( 1, 1, 1, 1 )
  18. thickness = 10
  19. [sub_resource type="StyleBoxLine" id=5]
  20. color = Color( 1, 0, 0, 1 )
  21. thickness = 10
  22. [sub_resource type="StyleBoxLine" id=6]
  23. color = Color( 1, 1, 1, 1 )
  24. thickness = 10
  25. [sub_resource type="StyleBoxLine" id=7]
  26. color = Color( 1, 0, 0, 1 )
  27. thickness = 10
  28. [node name="gui" type="Control"]
  29. pause_mode = 2
  30. margin_right = 500.0
  31. margin_bottom = 600.0
  32. script = ExtResource( 1 )
  33. [node name="bg" type="Sprite" parent="."]
  34. pause_mode = 2
  35. material = SubResource( 2 )
  36. texture = SubResource( 3 )
  37. centered = false
  38. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  39. pause_mode = 2
  40. margin_right = 500.0
  41. margin_bottom = 600.0
  42. [node name="Label" type="Label" parent="VBoxContainer"]
  43. pause_mode = 2
  44. margin_right = 500.0
  45. margin_bottom = 30.0
  46. custom_fonts/font = ExtResource( 2 )
  47. text = "Options:"
  48. align = 1
  49. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  50. pause_mode = 2
  51. margin_top = 34.0
  52. margin_right = 500.0
  53. margin_bottom = 64.0
  54. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
  55. pause_mode = 2
  56. margin_right = 153.0
  57. margin_bottom = 30.0
  58. custom_fonts/font = ExtResource( 2 )
  59. custom_colors/font_color = Color( 1, 1, 1, 1 )
  60. text = "FOV (70-100)"
  61. [node name="FOV" type="HSlider" parent="VBoxContainer/HBoxContainer"]
  62. pause_mode = 2
  63. margin_left = 157.0
  64. margin_right = 500.0
  65. margin_bottom = 30.0
  66. size_flags_horizontal = 3
  67. size_flags_vertical = 5
  68. custom_styles/slider = SubResource( 4 )
  69. custom_styles/grabber_area = SubResource( 5 )
  70. min_value = 70.0
  71. value = 70.0
  72. [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
  73. pause_mode = 2
  74. margin_top = 68.0
  75. margin_right = 500.0
  76. margin_bottom = 108.0
  77. [node name="PP" type="CheckButton" parent="VBoxContainer/HBoxContainer2"]
  78. pause_mode = 2
  79. margin_right = 419.0
  80. margin_bottom = 40.0
  81. custom_fonts/font = ExtResource( 2 )
  82. custom_colors/font_color = Color( 1, 1, 1, 1 )
  83. text = "Turn off post-porcessing"
  84. [node name="HBoxContainer4" type="HBoxContainer" parent="VBoxContainer"]
  85. margin_top = 112.0
  86. margin_right = 500.0
  87. margin_bottom = 152.0
  88. [node name="panorama" type="CheckButton" parent="VBoxContainer/HBoxContainer4"]
  89. pause_mode = 2
  90. margin_right = 309.0
  91. margin_bottom = 40.0
  92. custom_fonts/font = ExtResource( 2 )
  93. custom_colors/font_color = Color( 1, 1, 1, 1 )
  94. text = "Disable panorama"
  95. [node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer"]
  96. pause_mode = 2
  97. margin_top = 156.0
  98. margin_right = 500.0
  99. margin_bottom = 196.0
  100. [node name="reflection" type="CheckButton" parent="VBoxContainer/HBoxContainer3"]
  101. pause_mode = 2
  102. margin_right = 380.0
  103. margin_bottom = 40.0
  104. custom_fonts/font = ExtResource( 2 )
  105. custom_colors/font_color = Color( 1, 1, 1, 1 )
  106. text = "Disable RT reflections"
  107. [node name="HBoxContainer5" type="HBoxContainer" parent="VBoxContainer"]
  108. margin_top = 200.0
  109. margin_right = 500.0
  110. margin_bottom = 230.0
  111. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer5"]
  112. pause_mode = 2
  113. margin_right = 326.0
  114. margin_bottom = 30.0
  115. custom_fonts/font = ExtResource( 2 )
  116. custom_colors/font_color = Color( 1, 1, 1, 1 )
  117. text = "Refl resolution(32-1024)"
  118. [node name="refl_res" type="HSlider" parent="VBoxContainer/HBoxContainer5"]
  119. pause_mode = 2
  120. margin_left = 330.0
  121. margin_right = 500.0
  122. margin_bottom = 30.0
  123. size_flags_horizontal = 3
  124. size_flags_vertical = 5
  125. custom_styles/slider = SubResource( 6 )
  126. custom_styles/grabber_area = SubResource( 7 )
  127. min_value = 32.0
  128. max_value = 1024.0
  129. value = 128.0
  130. [node name="HBoxContainer7" type="HBoxContainer" parent="VBoxContainer"]
  131. margin_top = 234.0
  132. margin_right = 500.0
  133. margin_bottom = 264.0
  134. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer7"]
  135. pause_mode = 2
  136. margin_right = 162.0
  137. margin_bottom = 30.0
  138. custom_fonts/font = ExtResource( 2 )
  139. custom_colors/font_color = Color( 1, 1, 1, 1 )
  140. text = "MSAA (0x-8x)"
  141. [node name="MSAA" type="HSlider" parent="VBoxContainer/HBoxContainer7"]
  142. pause_mode = 2
  143. margin_left = 166.0
  144. margin_right = 500.0
  145. margin_bottom = 30.0
  146. size_flags_horizontal = 3
  147. size_flags_vertical = 5
  148. custom_styles/slider = SubResource( 6 )
  149. custom_styles/grabber_area = SubResource( 7 )
  150. max_value = 4.0
  151. [node name="HBoxContainer8" type="HBoxContainer" parent="VBoxContainer"]
  152. pause_mode = 2
  153. margin_top = 268.0
  154. margin_right = 500.0
  155. margin_bottom = 308.0
  156. [node name="less_parts" type="CheckButton" parent="VBoxContainer/HBoxContainer8"]
  157. pause_mode = 2
  158. margin_right = 308.0
  159. margin_bottom = 40.0
  160. custom_fonts/font = ExtResource( 2 )
  161. custom_colors/font_color = Color( 1, 1, 1, 1 )
  162. text = "2x Less particles"
  163. [node name="HBoxContainer6" type="HBoxContainer" parent="VBoxContainer"]
  164. margin_top = 312.0
  165. margin_right = 500.0
  166. margin_bottom = 342.0
  167. [node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer6"]
  168. pause_mode = 2
  169. margin_right = 500.0
  170. margin_bottom = 30.0
  171. size_flags_horizontal = 3
  172. custom_fonts/font = ExtResource( 2 )
  173. custom_colors/font_color = Color( 0.984314, 0, 0, 1 )
  174. text = "Control: use mouse"
  175. align = 1
  176. [node name="Ok" type="Button" parent="."]
  177. pause_mode = 2
  178. margin_left = 189.5
  179. margin_top = 519.0
  180. margin_right = 320.5
  181. margin_bottom = 594.0
  182. text = "Ok"
  183. [connection signal="value_changed" from="VBoxContainer/HBoxContainer/FOV" to="." method="_on_FOV_value_changed"]
  184. [connection signal="toggled" from="VBoxContainer/HBoxContainer2/PP" to="." method="_on_PP_toggled"]
  185. [connection signal="toggled" from="VBoxContainer/HBoxContainer4/panorama" to="." method="_on_panorama_toggled"]
  186. [connection signal="toggled" from="VBoxContainer/HBoxContainer3/reflection" to="." method="_on_reflection_toggled"]
  187. [connection signal="value_changed" from="VBoxContainer/HBoxContainer5/refl_res" to="." method="_on_refl_res_value_changed"]
  188. [connection signal="value_changed" from="VBoxContainer/HBoxContainer7/MSAA" to="." method="_on_MSAA_value_changed"]
  189. [connection signal="toggled" from="VBoxContainer/HBoxContainer8/less_parts" to="." method="_on_less_parts_toggled"]
  190. [connection signal="pressed" from="Ok" to="." method="_on_Ok_pressed"]