Skip to content

Commit

Permalink
Sxangxu aspekton
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanHeydariNasab committed Mar 6, 2018
1 parent 08543a2 commit 84c6429
Show file tree
Hide file tree
Showing 19 changed files with 214 additions and 124 deletions.
3 changes: 3 additions & 0 deletions Agordoj.gd
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
extends Control

onready var Fono = get_node("Fono")

func _ready():
get_node("Sonoj").set_pressed(T.Agordejo.get_value("Agordoj", "Sonoj", true))
get_node("Muzikoj").set_pressed(T.Agordejo.get_value("Agordoj", "Muzikoj", true))
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_Sonoj_toggled( b ):
Expand Down
15 changes: 15 additions & 0 deletions Agordoj.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ margin/right = 490.0
margin/bottom = 190.0
script/script = ExtResource( 1 )

[node name="Fono" type="Polygon2D" parent="."]

transform/pos = Vector2( -450, 0 )
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="Muzikoj" type="CheckButton" parent="."]

focus/ignore_mouse = false
Expand Down
4 changes: 2 additions & 2 deletions Ebeno.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ extends Area2D


func _ready():
if T.Radiko.koloro == "000000":
get_node("Aspekto").set_color("000000")
if T.Radiko.koloro == "ffffff":
get_node("Aspekto").set_color("ffffff")


func _on_Ebeno_body_enter( korpo ):
Expand Down
2 changes: 1 addition & 1 deletion Ebeno.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ script/script = ExtResource( 1 )

polygon = Vector2Array( 400, -10, -400, -10, -400, 10, 400, 10 )
uv = Vector2Array( )
color = Color( 1, 1, 1, 1 )
color = Color( 0, 0, 0, 1 )
vertex_colors = ColorArray( )
offset = Vector2( 0, 0 )
texture/texture = null
Expand Down
3 changes: 3 additions & 0 deletions Lingvo.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
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))
if not T.lingvo_elektita:
get_tree().set_auto_accept_quit(false)
Expand Down
63 changes: 39 additions & 24 deletions Lingvo.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ margin/right = 0.0
margin/bottom = 0.0
script/script = ExtResource( 1 )

[node name="Fono" type="Polygon2D" parent="."]

transform/pos = Vector2( 0, 50 )
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="EO" type="Button" parent="."]

rect/scale = Vector2( 0.8, 0.8 )
Expand All @@ -27,18 +42,18 @@ focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 430.0
margin/top = 500.0
margin/right = 563.0
margin/bottom = 580.0
margin/bottom = 688.0
custom_styles/hover = ExtResource( 2 )
custom_styles/pressed = ExtResource( 3 )
custom_styles/focus = ExtResource( 2 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color_disabled = Color( 0, 0, 0, 1 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 1, 0.701961, 0, 1 )
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 1, 1, 1, 1 )
custom_colors/font_color_pressed = Color( 1, 1, 1, 1 )
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
Expand All @@ -47,11 +62,11 @@ flat = false

[node name="Fono" type="Polygon2D" parent="EO"]

transform/pos = Vector2( 309.5, 181.25 )
transform/pos = Vector2( 312.5, 250 )
transform/scale = Vector2( 0.744141, 0.488282 )
polygon = Vector2Array( 339.989, -63.9999, 256, 63.9999, -331.926, 63.9999, -415.916, -63.9999 )
polygon = Vector2Array( 335.958, -128, 293.963, 63.9999, -419.947, 63.9999, -419.947, -128 )
uv = Vector2Array( )
color = Color( 1, 1, 1, 1 )
color = Color( 0, 0, 0, 1 )
vertex_colors = ColorArray( )
offset = Vector2( 0, 0 )
texture/texture = null
Expand All @@ -68,12 +83,12 @@ focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 63.0
margin/top = 150.0
margin/right = 792.0
margin/bottom = 254.0
margin/left = 0.0
margin/top = 187.0
margin/right = 885.0
margin/bottom = 344.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
text = "Esperanto"
align = 1
valign = 1
Expand All @@ -89,18 +104,18 @@ focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 200.0
margin/top = 250.0
margin/right = 563.0
margin/bottom = 325.0
margin/bottom = 438.0
custom_styles/hover = ExtResource( 2 )
custom_styles/pressed = ExtResource( 3 )
custom_styles/focus = ExtResource( 2 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color_disabled = Color( 0, 0, 0, 1 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 1, 0.701961, 0, 1 )
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 1, 1, 1, 1 )
custom_colors/font_color_pressed = Color( 1, 1, 1, 1 )
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
Expand All @@ -109,11 +124,11 @@ flat = false

[node name="Fono" type="Polygon2D" parent="EN"]

transform/pos = Vector2( 312.5, 156.25 )
transform/pos = Vector2( 312.5, 250 )
transform/scale = Vector2( 0.732422, 0.488281 )
polygon = Vector2Array( 341.333, -64, 256, 64.0001, -341.333, 64.0001, -426.667, -64 )
polygon = Vector2Array( 341.333, -128, 298.667, 64, -426.667, 64, -426.667, -128 )
uv = Vector2Array( )
color = Color( 1, 1, 1, 1 )
color = Color( 0, 0, 0, 1 )
vertex_colors = ColorArray( )
offset = Vector2( 0, 0 )
texture/texture = null
Expand All @@ -130,12 +145,12 @@ focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 63.0
margin/top = 125.0
margin/right = 791.0
margin/bottom = 229.0
margin/left = 0.0
margin/top = 188.0
margin/right = 885.0
margin/bottom = 343.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
text = "English"
align = 1
valign = 1
Expand Down
4 changes: 2 additions & 2 deletions Materialo.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ onready var Kasxi = get_node("Kasxi")
var materialo = 100

func _ready():
if T.Radiko.koloro == "000000":
get_node("Aspekto").set_color("000000")
if T.Radiko.koloro == "ffffff":
get_node("Aspekto").set_color("ffffff")

func _on_Materialo_body_enter( korpo ):
clear_shapes()
Expand Down
2 changes: 1 addition & 1 deletion Materialo.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ script/script = ExtResource( 1 )

polygon = Vector2Array( -14, -14, -18, -8, -20, 0, -18, 8, -14, 14, -8, 18, 0, 20, 8, 18, 14, 14, 18, 8, 20, 0, 18, -8, 14, -14, 8, -18, 0, -20, -8, -18 )
uv = Vector2Array( )
color = Color( 1, 1, 1, 1 )
color = Color( 0, 0, 0, 1 )
vertex_colors = ColorArray( )
offset = Vector2( 0, 0 )
texture/texture = null
Expand Down
11 changes: 10 additions & 1 deletion Menuo.gd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ onready var Griza = get_node("Griza")
onready var Blanka = get_node("Blanka")
onready var Nigra = get_node("Nigra")

onready var Fono = get_node("Fono")

func _init():
var lingvo = T.Agordejo.get_value("Lingvo", "lingvo")
if TranslationServer.get_locale() != lingvo:
Expand All @@ -19,7 +21,8 @@ func _ready():
get_tree().set_auto_accept_quit(false)
get_node("Enveno_sono").set("stream/play", T.Agordejo.get_value("Agordoj", "Sonoj", true))
get_node(T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")).set_pressed(true)
get_node(T.Agordejo.get_value("Koloro", "koloro", "Blanka")).set_pressed(true)
get_node(T.Agordejo.get_value("Koloro", "koloro", "Nigra")).set_pressed(true)
Fono.set_color(T.koloroj[T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")])

func _on_Ludu_pressed():
get_tree().change_scene("res://Radiko.tscn")
Expand All @@ -39,6 +42,7 @@ func _on_Eliri_pressed():
func _on_Rugxa_pressed():
T.Agordejo.set_value("Koloro", "fonkoloro", "Rugxa")
T.Agordejo.save(T.agordejo)
Fono.set_color(T.koloroj[T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")])
Rugxa.set_pressed(true)
Ambra.set_pressed(false)
Verda.set_pressed(false)
Expand All @@ -49,6 +53,7 @@ func _on_Rugxa_pressed():
func _on_Ambra_pressed():
T.Agordejo.set_value("Koloro", "fonkoloro", "Ambra")
T.Agordejo.save(T.agordejo)
Fono.set_color(T.koloroj[T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")])
Rugxa.set_pressed(false)
Ambra.set_pressed(true)
Verda.set_pressed(false)
Expand All @@ -59,6 +64,7 @@ func _on_Ambra_pressed():
func _on_Verda_pressed():
T.Agordejo.set_value("Koloro", "fonkoloro", "Verda")
T.Agordejo.save(T.agordejo)
Fono.set_color(T.koloroj[T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")])
Rugxa.set_pressed(false)
Ambra.set_pressed(false)
Verda.set_pressed(true)
Expand All @@ -69,6 +75,7 @@ func _on_Verda_pressed():
func _on_Blua_pressed():
T.Agordejo.set_value("Koloro", "fonkoloro", "Blua")
T.Agordejo.save(T.agordejo)
Fono.set_color(T.koloroj[T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")])
Rugxa.set_pressed(false)
Ambra.set_pressed(false)
Verda.set_pressed(false)
Expand All @@ -79,6 +86,7 @@ func _on_Blua_pressed():
func _on_Viola_pressed():
T.Agordejo.set_value("Koloro", "fonkoloro", "Viola")
T.Agordejo.save(T.agordejo)
Fono.set_color(T.koloroj[T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")])
Rugxa.set_pressed(false)
Ambra.set_pressed(false)
Verda.set_pressed(false)
Expand All @@ -89,6 +97,7 @@ func _on_Viola_pressed():
func _on_Griza_pressed():
T.Agordejo.set_value("Koloro", "fonkoloro", "Griza")
T.Agordejo.save(T.agordejo)
Fono.set_color(T.koloroj[T.Agordejo.get_value("Koloro", "fonkoloro", "Griza")])
Rugxa.set_pressed(false)
Ambra.set_pressed(false)
Verda.set_pressed(false)
Expand Down
Loading

0 comments on commit 84c6429

Please sign in to comment.