Skip to content

Commit

Permalink
align points
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Jul 15, 2016
1 parent 4bc9a60 commit 0bd4ef4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion points.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ func _fixed_process(delta):

func set_points(player1, player2):
start = OS.get_ticks_msec()
get_node("label").set_text(player1 + " - " + player2)
get_node("player1").set_text(player1)
get_node("player2").set_text(player2)
20 changes: 12 additions & 8 deletions points.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,25 @@ script/script = ExtResource( 1 )
transform/pos = Vector2( 56.8024, 22.5056 )
texture = ExtResource( 2 )

[node name="label" type="Label" parent="."]
[node name="player1" type="Label" parent="."]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = -82.0
margin/left = -89.0
margin/top = -28.0
margin/right = -14.0
margin/right = 7.0
margin/bottom = 78.0
custom_fonts/font = ExtResource( 3 )
custom_colors/font_color = Color( 1, 0.976471, 0.741176, 1 )
custom_colors/font_color_shadow = Color( 0.125, 0.0195312, 0.0195312, 1 )
custom_constants/shadow_offset_x = 2
custom_constants/shadow_offset_y = 2
custom_constants/shadow_as_outline = 0
text = "11"
text = "00"
align = 1
valign = 1
uppercase = true
percent_visible = 1.0
lines_skipped = 0
Expand Down Expand Up @@ -57,23 +59,25 @@ percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="label1" type="Label" parent="."]
[node name="player2" type="Label" parent="."]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 128.0
margin/left = 117.0
margin/top = -29.0
margin/right = 196.0
margin/right = 213.0
margin/bottom = 77.0
custom_fonts/font = ExtResource( 3 )
custom_colors/font_color = Color( 1, 0.976471, 0.741176, 1 )
custom_colors/font_color_shadow = Color( 0.125, 0.0195312, 0.0195312, 1 )
custom_constants/shadow_offset_x = 2
custom_constants/shadow_offset_y = 2
custom_constants/shadow_as_outline = 0
text = "11"
text = "00"
align = 1
valign = 1
uppercase = true
percent_visible = 1.0
lines_skipped = 0
Expand Down

0 comments on commit 0bd4ef4

Please sign in to comment.