123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- [gd_scene load_steps=3 format=3 uid="uid://c20r173idr1eu"]
- [ext_resource type="Font" path="res://noto_font.tres" id="1"]
- [sub_resource type="GDScript" id="1"]
- script/source = "extends Control
- func _ready():
- $Label.text = TranslationServer.get_locale()
- func _on_Button_pressed():
- if TranslationServer.get_locale() != \"ar\":
- TranslationServer.set_locale(\"ar\")
- else:
- TranslationServer.set_locale(\"en\")
- $Label.text = TranslationServer.get_locale()
- "
- [node name="Control" type="Control"]
- anchor_right = 1.0
- anchor_bottom = 1.0
- script = SubResource( "1" )
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="PanelLTR" type="Panel" parent="."]
- self_modulate = Color(0.494118, 1, 0.737255, 1)
- anchor_top = 1.0
- anchor_bottom = 1.0
- offset_left = 35.0
- offset_top = -200.0
- offset_right = 275.0
- offset_bottom = -50.0
- layout_direction = 2
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="GridContainer" type="GridContainer" parent="PanelLTR"]
- offset_right = 40.0
- offset_bottom = 40.0
- columns = 3
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="ButtonNW" type="Button" parent="PanelLTR/GridContainer"]
- offset_right = 77.0
- offset_bottom = 27.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "NorthWest"
- script = null
- [node name="ButtonN" type="Button" parent="PanelLTR/GridContainer"]
- offset_left = 81.0
- offset_right = 128.0
- offset_bottom = 27.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "North"
- script = null
- [node name="ButtonNE" type="Button" parent="PanelLTR/GridContainer"]
- offset_left = 132.0
- offset_right = 204.0
- offset_bottom = 27.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "NorthEast"
- script = null
- [node name="ButtonW" type="Button" parent="PanelLTR/GridContainer"]
- offset_top = 31.0
- offset_right = 77.0
- offset_bottom = 58.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "West"
- script = null
- [node name="ButtonCenter" type="Button" parent="PanelLTR/GridContainer"]
- offset_left = 81.0
- offset_top = 31.0
- offset_right = 128.0
- offset_bottom = 58.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "*"
- script = null
- [node name="ButtonE" type="Button" parent="PanelLTR/GridContainer"]
- offset_left = 132.0
- offset_top = 31.0
- offset_right = 204.0
- offset_bottom = 58.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "Еast"
- script = null
- [node name="ButtonSW" type="Button" parent="PanelLTR/GridContainer"]
- offset_top = 62.0
- offset_right = 77.0
- offset_bottom = 89.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "SouthWest"
- script = null
- [node name="ButtonS" type="Button" parent="PanelLTR/GridContainer"]
- offset_left = 81.0
- offset_top = 62.0
- offset_right = 128.0
- offset_bottom = 89.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "South"
- script = null
- [node name="ButtonSE" type="Button" parent="PanelLTR/GridContainer"]
- offset_left = 132.0
- offset_top = 62.0
- offset_right = 204.0
- offset_bottom = 89.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "SouthEast"
- script = null
- [node name="PanelLocale" type="Panel" parent="PanelLTR"]
- self_modulate = Color(0.819608, 0.254902, 0.254902, 1)
- offset_left = 20.0
- offset_top = 90.0
- offset_right = 170.0
- offset_bottom = 130.0
- layout_direction = 1
- script = null
- [node name="HBoxContainer" type="HBoxContainer" parent="PanelLTR/PanelLocale"]
- offset_right = 107.0
- offset_bottom = 34.0005
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="ButtonPrev" type="Button" parent="PanelLTR/PanelLocale/HBoxContainer"]
- offset_right = 64.0
- offset_bottom = 34.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "Previous"
- script = null
- [node name="ButtonNext" type="Button" parent="PanelLTR/PanelLocale/HBoxContainer"]
- offset_left = 68.0
- offset_right = 109.0
- offset_bottom = 34.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "Next"
- script = null
- [node name="PanelRTL" type="Panel" parent="."]
- self_modulate = Color(0.0705882, 0.235294, 1, 1)
- anchor_top = 1.0
- anchor_bottom = 1.0
- offset_left = 33.9999
- offset_top = -200.0
- offset_right = 284.0
- offset_bottom = -50.0
- layout_direction = 3
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="GridContainer" type="GridContainer" parent="PanelRTL"]
- offset_right = 40.0
- offset_bottom = 40.0
- columns = 3
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="ButtonNW" type="Button" parent="PanelRTL/GridContainer"]
- offset_right = 81.0
- offset_bottom = 27.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "الشمال الشرقي"
- script = null
- [node name="ButtonN" type="Button" parent="PanelRTL/GridContainer"]
- offset_left = 85.0
- offset_right = 131.0
- offset_bottom = 27.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "الشمال"
- script = null
- [node name="ButtonNE" type="Button" parent="PanelRTL/GridContainer"]
- offset_left = 135.0
- offset_right = 214.0
- offset_bottom = 27.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "الشمال الغربي"
- script = null
- [node name="ButtonW" type="Button" parent="PanelRTL/GridContainer"]
- offset_top = 31.0
- offset_right = 81.0
- offset_bottom = 58.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "الشرق"
- script = null
- [node name="ButtonCenter" type="Button" parent="PanelRTL/GridContainer"]
- offset_left = 85.0
- offset_top = 31.0
- offset_right = 131.0
- offset_bottom = 58.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "*"
- script = null
- [node name="ButtonE" type="Button" parent="PanelRTL/GridContainer"]
- offset_left = 135.0
- offset_top = 31.0
- offset_right = 214.0
- offset_bottom = 58.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "الغرب"
- script = null
- [node name="ButtonSW" type="Button" parent="PanelRTL/GridContainer"]
- offset_top = 62.0
- offset_right = 81.0
- offset_bottom = 89.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "الجنوب الشرقي"
- script = null
- [node name="ButtonS" type="Button" parent="PanelRTL/GridContainer"]
- offset_left = 85.0
- offset_top = 62.0
- offset_right = 131.0
- offset_bottom = 89.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "الجنوب"
- script = null
- [node name="ButtonSE" type="Button" parent="PanelRTL/GridContainer"]
- offset_left = 135.0
- offset_top = 62.0
- offset_right = 214.0
- offset_bottom = 89.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = " الجنوب الغربي"
- script = null
- [node name="ButtonSwapLocale" type="Button" parent="."]
- offset_left = 670.0
- offset_top = 25.0
- offset_right = 820.0
- offset_bottom = 65.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "Swap locale"
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="PanelSide" type="Panel" parent="."]
- anchor_left = 1.0
- anchor_right = 1.0
- anchor_bottom = 1.0
- offset_left = -20.0
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="HBoxContainer" type="HBoxContainer" parent="."]
- offset_left = 20.0
- offset_top = 20.0
- offset_right = 140.0
- offset_bottom = 60.0
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="ButtonBack" type="Button" parent="HBoxContainer"]
- offset_right = 40.0
- offset_bottom = 40.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "Back"
- script = null
- [node name="ButtonFwd" type="Button" parent="HBoxContainer"]
- offset_left = 44.0
- offset_right = 105.0
- offset_bottom = 40.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "Forward"
- script = null
- [node name="Label" type="Label" parent="."]
- offset_left = 670.0
- offset_top = 70.0
- offset_right = 820.0
- offset_bottom = 100.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- align = 1
- structured_text_bidi_override_options = []
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="LabelInfo" type="Label" parent="."]
- offset_left = 100.0
- offset_top = 100.0
- offset_right = 550.0
- offset_bottom = 300.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "Click \"Swap Locale\" button to swap locale between \"en and \"ar\".
- Green tinted controls - LTR layout direction.
- Blue tinted controls - RTL layout direction.
- Red tinted controls - Layout direction from locale.
- Gray (default) controls - Inherited layout direction."
- structured_text_bidi_override_options = []
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="OptionButton" type="OptionButton" parent="."]
- offset_left = 129.0
- offset_top = 240.0
- offset_right = 264.0
- offset_bottom = 260.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- items = []
- script = null
- [node name="CheckBox" type="CheckBox" parent="."]
- offset_left = 124.0
- offset_top = 265.0
- offset_right = 184.0
- offset_bottom = 290.0
- theme_override_fonts/font = ExtResource( "1" )
- theme_override_font_sizes/font_size = 12
- text = "Test"
- script = null
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [connection signal="pressed" from="ButtonSwapLocale" to="." method="_on_Button_pressed"]
|