diff --git a/Menuo.gd b/Menuo.gd index d8b7c4c..af81298 100644 --- a/Menuo.gd +++ b/Menuo.gd @@ -27,6 +27,9 @@ func _ready(): func _on_Ludu_pressed(): get_tree().change_scene("res://Radiko.tscn") +func _on_Puzloj_pressed(): + get_tree().change_scene("res://Niveloj.tscn") + func _on_Lingvo_pressed(): get_tree().change_scene("res://Lingvo.tscn") @@ -112,9 +115,8 @@ func _on_Nigra_pressed(): Blanka.set_pressed(false) Nigra.set_pressed(true) - func _on_Blanka_pressed(): T.Agordejo.set_value("Koloro", "koloro", "Blanka") T.Agordejo.save(T.agordejo) Blanka.set_pressed(true) - Nigra.set_pressed(false) + Nigra.set_pressed(false) \ No newline at end of file diff --git a/Menuo.tscn b/Menuo.tscn index 0428e07..4441d6f 100644 --- a/Menuo.tscn +++ b/Menuo.tscn @@ -764,6 +764,8 @@ stream/buffering_ms = 500 [connection signal="pressed" from="Ludu" to="." method="_on_Ludu_pressed"] +[connection signal="pressed" from="Puzloj" to="." method="_on_Puzloj_pressed"] + [connection signal="pressed" from="Viola" to="." method="_on_Viola_pressed"] [connection signal="pressed" from="Blua" to="." method="_on_Blua_pressed"] diff --git a/Niveloj.gd b/Niveloj.gd new file mode 100644 index 0000000..c5cc3eb --- /dev/null +++ b/Niveloj.gd @@ -0,0 +1,10 @@ +extends Control + +onready var Fono = get_node("Fono") + +func _ready(): + Fono.set_color(T.koloroj[T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")]) + get_node("Enveno_sono").set("stream/play", T.Agordejo.get_value("Agordoj", "Sonoj", true)) + +func _on_Reen_pressed(): + get_tree().change_scene("res://Menuo.tscn") diff --git a/Niveloj.tscn b/Niveloj.tscn new file mode 100644 index 0000000..aaf3978 --- /dev/null +++ b/Niveloj.tscn @@ -0,0 +1,89 @@ +[gd_scene load_steps=5 format=1] + +[ext_resource path="res://Niveloj.gd" type="Script" id=1] +[ext_resource path="res://GUI/reen.png" type="Texture" id=2] +[ext_resource path="res://Sonoj/Tabloj/130428__mmiron__na-sharp.ogg" type="AudioStream" id=3] +[ext_resource path="res://Tiparoj/jomhuria.fnt" type="BitmapFont" id=4] + +[node name="Niveloj" type="Control"] + +anchor/right = 1 +anchor/bottom = 1 +focus/ignore_mouse = false +focus/stop_mouse = true +size_flags/horizontal = 2 +size_flags/vertical = 2 +margin/left = 0.0 +margin/top = 0.0 +margin/right = 600.0 +margin/bottom = 560.0 +script/script = ExtResource( 1 ) + +[node name="Fono" type="Polygon2D" parent="."] + +polygon = Vector2Array( 600, -400, 600, 2680, 0, 2680, 0, -400 ) +uv = Vector2Array( ) +color = Color( 0.117647, 0.533333, 0.898039, 1 ) +vertex_colors = ColorArray( ) +offset = Vector2( 0, 0 ) +texture/texture = null +texture/offset = Vector2( 0, 0 ) +texture/scale = Vector2( 1, 1 ) +texture/rotation = 0.0 +invert/enable = false +invert/border = 100.0 + +[node name="Reen" type="Button" parent="."] + +rect/scale = Vector2( 0.5, 0.5 ) +focus/ignore_mouse = false +focus/stop_mouse = true +size_flags/horizontal = 2 +size_flags/vertical = 2 +margin/left = 530.0 +margin/top = 0.0 +margin/right = 670.0 +margin/bottom = 140.0 +toggle_mode = false +enabled_focus_mode = 2 +shortcut = null +icon = ExtResource( 2 ) +flat = false + +[node name="Enveno_sono" type="StreamPlayer" parent="."] + +stream/stream = ExtResource( 3 ) +stream/play = false +stream/loop = false +stream/volume_db = 5.0 +stream/autoplay = false +stream/paused = false +stream/loop_restart_time = 0.0 +stream/buffering_ms = 500 + +[node name="Baldaux" type="Label" parent="."] + +anchor/left = 3 +anchor/top = 3 +anchor/right = 3 +anchor/bottom = 3 +focus/ignore_mouse = true +focus/stop_mouse = true +size_flags/horizontal = 2 +size_flags/vertical = 0 +margin/left = 0.0 +margin/top = -220.0 +margin/right = -600.0 +margin/bottom = -299.0 +custom_fonts/font = ExtResource( 4 ) +custom_colors/font_color = Color( 0, 0, 0, 1 ) +text = "Baldaux" +align = 1 +valign = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 + +[connection signal="pressed" from="Reen" to="." method="_on_Reen_pressed"] + + diff --git a/Traduko.csv b/Traduko.csv index 8571318..aba230b 100644 --- a/Traduko.csv +++ b/Traduko.csv @@ -2,6 +2,8 @@ id,eo,en Normala,Normala,Normal Senfina,Senfina,Infinite Ludu,Ludu,Play +Puzloj,Puzloj,Puzzles +Baldaux,BaldaĆ­,Coming soon Eliri,Eliri,Exit Agordoj,Agordoj,Settings Pri,Pri,About diff --git a/Tradukoj/Traduko.en.xl b/Tradukoj/Traduko.en.xl index a3f9c26..4d524b0 100644 Binary files a/Tradukoj/Traduko.en.xl and b/Tradukoj/Traduko.en.xl differ diff --git a/Tradukoj/Traduko.eo.xl b/Tradukoj/Traduko.eo.xl index eedd3d6..31f68a3 100644 Binary files a/Tradukoj/Traduko.eo.xl and b/Tradukoj/Traduko.eo.xl differ