Skip to content

Commit

Permalink
Baldaux: puzloj
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanHeydariNasab committed Mar 6, 2018
1 parent 3efd4ec commit c52429e
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Menuo.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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)
2 changes: 2 additions & 0 deletions Menuo.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
10 changes: 10 additions & 0 deletions Niveloj.gd
Original file line number Diff line number Diff line change
@@ -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")
89 changes: 89 additions & 0 deletions Niveloj.tscn
Original file line number Diff line number Diff line change
@@ -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"]


2 changes: 2 additions & 0 deletions Traduko.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified Tradukoj/Traduko.en.xl
Binary file not shown.
Binary file modified Tradukoj/Traduko.eo.xl
Binary file not shown.

0 comments on commit c52429e

Please sign in to comment.