ui_mirroring.tscn 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. [gd_scene load_steps=4 format=3 uid="uid://c20r173idr1eu"]
  2. [ext_resource type="FontVariation" uid="uid://dle4xickuiwl" path="res://fonts/noto_sans_bold.tres" id="1_anavx"]
  3. [ext_resource type="Script" path="res://ui_mirroring.gd" id="2_ypepw"]
  4. [sub_resource type="Theme" id="Theme_yin5r"]
  5. default_font = ExtResource("1_anavx")
  6. [node name="Control" type="Control"]
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. theme = SubResource("Theme_yin5r")
  14. script = ExtResource("2_ypepw")
  15. [node name="PanelLTR" type="Panel" parent="."]
  16. self_modulate = Color(0.494118, 1, 0.737255, 1)
  17. layout_direction = 2
  18. layout_mode = 0
  19. anchor_top = 1.0
  20. anchor_bottom = 1.0
  21. offset_left = 35.0
  22. offset_top = -200.0
  23. offset_right = 275.0
  24. offset_bottom = -50.0
  25. [node name="GridContainer" type="GridContainer" parent="PanelLTR"]
  26. layout_mode = 0
  27. offset_right = 40.0
  28. offset_bottom = 40.0
  29. columns = 3
  30. [node name="ButtonNW" type="Button" parent="PanelLTR/GridContainer"]
  31. layout_mode = 2
  32. theme_override_font_sizes/font_size = 12
  33. text = "NorthWest"
  34. [node name="ButtonN" type="Button" parent="PanelLTR/GridContainer"]
  35. layout_mode = 2
  36. theme_override_font_sizes/font_size = 12
  37. text = "North"
  38. [node name="ButtonNE" type="Button" parent="PanelLTR/GridContainer"]
  39. layout_mode = 2
  40. theme_override_font_sizes/font_size = 12
  41. text = "NorthEast"
  42. [node name="ButtonW" type="Button" parent="PanelLTR/GridContainer"]
  43. layout_mode = 2
  44. theme_override_font_sizes/font_size = 12
  45. text = "West"
  46. [node name="ButtonCenter" type="Button" parent="PanelLTR/GridContainer"]
  47. layout_mode = 2
  48. theme_override_font_sizes/font_size = 12
  49. text = "*"
  50. [node name="ButtonE" type="Button" parent="PanelLTR/GridContainer"]
  51. layout_mode = 2
  52. theme_override_font_sizes/font_size = 12
  53. text = "Еast"
  54. [node name="ButtonSW" type="Button" parent="PanelLTR/GridContainer"]
  55. layout_mode = 2
  56. theme_override_font_sizes/font_size = 12
  57. text = "SouthWest"
  58. [node name="ButtonS" type="Button" parent="PanelLTR/GridContainer"]
  59. layout_mode = 2
  60. theme_override_font_sizes/font_size = 12
  61. text = "South"
  62. [node name="ButtonSE" type="Button" parent="PanelLTR/GridContainer"]
  63. layout_mode = 2
  64. theme_override_font_sizes/font_size = 12
  65. text = "SouthEast"
  66. [node name="PanelLocale" type="Panel" parent="PanelLTR"]
  67. self_modulate = Color(0.819608, 0.254902, 0.254902, 1)
  68. layout_direction = 1
  69. layout_mode = 0
  70. offset_left = 20.0
  71. offset_top = 101.0
  72. offset_right = 170.0
  73. offset_bottom = 141.0
  74. [node name="HBoxContainer" type="HBoxContainer" parent="PanelLTR/PanelLocale"]
  75. layout_mode = 0
  76. offset_right = 107.0
  77. offset_bottom = 34.0005
  78. [node name="ButtonPrev" type="Button" parent="PanelLTR/PanelLocale/HBoxContainer"]
  79. layout_mode = 2
  80. theme_override_font_sizes/font_size = 12
  81. text = "Previous"
  82. [node name="ButtonNext" type="Button" parent="PanelLTR/PanelLocale/HBoxContainer"]
  83. layout_mode = 2
  84. theme_override_font_sizes/font_size = 12
  85. text = "Next"
  86. [node name="PanelRTL" type="Panel" parent="."]
  87. self_modulate = Color(0.0705882, 0.235294, 1, 1)
  88. layout_direction = 3
  89. layout_mode = 0
  90. anchor_top = 1.0
  91. anchor_bottom = 1.0
  92. offset_left = 33.9999
  93. offset_top = -200.0
  94. offset_right = 284.0
  95. offset_bottom = -50.0
  96. [node name="GridContainer" type="GridContainer" parent="PanelRTL"]
  97. layout_mode = 0
  98. offset_right = 40.0
  99. offset_bottom = 40.0
  100. columns = 3
  101. [node name="ButtonNW" type="Button" parent="PanelRTL/GridContainer"]
  102. layout_mode = 2
  103. theme_override_font_sizes/font_size = 12
  104. text = "الشمال الشرقي"
  105. [node name="ButtonN" type="Button" parent="PanelRTL/GridContainer"]
  106. layout_mode = 2
  107. theme_override_font_sizes/font_size = 12
  108. text = "الشمال"
  109. [node name="ButtonNE" type="Button" parent="PanelRTL/GridContainer"]
  110. layout_mode = 2
  111. theme_override_font_sizes/font_size = 12
  112. text = "الشمال الغربي"
  113. [node name="ButtonW" type="Button" parent="PanelRTL/GridContainer"]
  114. layout_mode = 2
  115. theme_override_font_sizes/font_size = 12
  116. text = "الشرق"
  117. [node name="ButtonCenter" type="Button" parent="PanelRTL/GridContainer"]
  118. layout_mode = 2
  119. theme_override_font_sizes/font_size = 12
  120. text = "*"
  121. [node name="ButtonE" type="Button" parent="PanelRTL/GridContainer"]
  122. layout_mode = 2
  123. theme_override_font_sizes/font_size = 12
  124. text = "الغرب"
  125. [node name="ButtonSW" type="Button" parent="PanelRTL/GridContainer"]
  126. layout_mode = 2
  127. theme_override_font_sizes/font_size = 12
  128. text = "الجنوب الشرقي"
  129. [node name="ButtonS" type="Button" parent="PanelRTL/GridContainer"]
  130. layout_mode = 2
  131. theme_override_font_sizes/font_size = 12
  132. text = "الجنوب"
  133. [node name="ButtonSE" type="Button" parent="PanelRTL/GridContainer"]
  134. layout_mode = 2
  135. theme_override_font_sizes/font_size = 12
  136. text = " الجنوب الغربي"
  137. [node name="ButtonSwapLocale" type="Button" parent="."]
  138. layout_mode = 0
  139. offset_left = 670.0
  140. offset_top = 25.0
  141. offset_right = 820.0
  142. offset_bottom = 65.0
  143. theme_override_font_sizes/font_size = 12
  144. text = "Swap locale"
  145. [node name="PanelSide" type="Panel" parent="."]
  146. layout_mode = 0
  147. anchor_left = 1.0
  148. anchor_right = 1.0
  149. anchor_bottom = 1.0
  150. offset_left = -20.0
  151. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  152. layout_mode = 0
  153. offset_left = 20.0
  154. offset_top = 20.0
  155. offset_right = 140.0
  156. offset_bottom = 60.0
  157. [node name="ButtonBack" type="Button" parent="HBoxContainer"]
  158. layout_mode = 2
  159. theme_override_font_sizes/font_size = 12
  160. text = "Back"
  161. [node name="ButtonFwd" type="Button" parent="HBoxContainer"]
  162. layout_mode = 2
  163. theme_override_font_sizes/font_size = 12
  164. text = "Forward"
  165. [node name="Label" type="Label" parent="."]
  166. layout_mode = 0
  167. offset_left = 670.0
  168. offset_top = 70.0
  169. offset_right = 820.0
  170. offset_bottom = 100.0
  171. theme_override_font_sizes/font_size = 12
  172. [node name="LabelInfo" type="Label" parent="."]
  173. layout_mode = 0
  174. offset_left = 100.0
  175. offset_top = 100.0
  176. offset_right = 550.0
  177. offset_bottom = 300.0
  178. theme_override_font_sizes/font_size = 12
  179. text = "Click \"Swap Locale\" button to swap locale between \"en and \"ar\".
  180. Green tinted controls - LTR layout direction.
  181. Blue tinted controls - RTL layout direction.
  182. Red tinted controls - Layout direction from locale.
  183. Gray (default) controls - Inherited layout direction."
  184. [node name="OptionButton" type="OptionButton" parent="."]
  185. layout_mode = 0
  186. offset_left = 129.0
  187. offset_top = 240.0
  188. offset_right = 264.0
  189. offset_bottom = 260.0
  190. theme_override_font_sizes/font_size = 12
  191. [node name="CheckBox" type="CheckBox" parent="."]
  192. layout_mode = 0
  193. offset_left = 124.0
  194. offset_top = 265.0
  195. offset_right = 184.0
  196. offset_bottom = 290.0
  197. theme_override_font_sizes/font_size = 12
  198. text = "Test"
  199. [connection signal="pressed" from="ButtonSwapLocale" to="." method="_on_Button_pressed"]