Skip to content

Commit

Permalink
#10 revert to prevent issues with already existing saved game states
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Oct 22, 2023
1 parent 57d3745 commit 5793347
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
4 changes: 2 additions & 2 deletions game/src/global/Global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@ func increase_stats():
if is_worldcup:
if final_teams[0]["name"] == selected_squad:
league_stats[current_league_name]["played"] += 1
league_stats[current_league_name]["wins"] += 1
league_stats[current_league_name]["win"] += 1
else:
league_stats[current_league_name]["played"] += 1
else:
for team in teams:
if team["name"] == selected_squad:
if team["position"] == 0:
league_stats[current_league_name]["played"] += 1
league_stats[current_league_name]["wins"] += 1
league_stats[current_league_name]["win"] += 1
else:
league_stats[current_league_name]["played"] += 1

Expand Down
35 changes: 16 additions & 19 deletions game/src/ui/menu/MenuScreen.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -109,44 +109,44 @@ margin_bottom = 1149.0
theme = ExtResource( 4 )

[node name="VBoxContainer" type="VBoxContainer" parent="Content/MarginContainer"]
margin_top = 109.0
margin_top = 130.0
margin_right = 480.0
margin_bottom = 771.0
margin_bottom = 750.0
size_flags_vertical = 4

[node name="Play" type="Button" parent="Content/MarginContainer/VBoxContainer"]
margin_right = 480.0
margin_bottom = 102.0
margin_bottom = 95.0
text = "PLAY"

[node name="Shop" type="Button" parent="Content/MarginContainer/VBoxContainer"]
margin_top = 112.0
margin_top = 105.0
margin_right = 480.0
margin_bottom = 214.0
margin_bottom = 200.0
text = "SHOP"

[node name="Statistics" type="Button" parent="Content/MarginContainer/VBoxContainer"]
margin_top = 224.0
margin_top = 210.0
margin_right = 480.0
margin_bottom = 326.0
margin_bottom = 305.0
text = "HALL"

[node name="Settings" type="Button" parent="Content/MarginContainer/VBoxContainer"]
margin_top = 336.0
margin_top = 315.0
margin_right = 480.0
margin_bottom = 438.0
margin_bottom = 410.0
text = "SETTINGS"

[node name="Info" type="Button" parent="Content/MarginContainer/VBoxContainer"]
margin_top = 448.0
margin_top = 420.0
margin_right = 480.0
margin_bottom = 550.0
margin_bottom = 515.0
text = "INFO"

[node name="Exit" type="Button" parent="Content/MarginContainer/VBoxContainer"]
margin_top = 560.0
margin_top = 525.0
margin_right = 480.0
margin_bottom = 662.0
margin_bottom = 620.0
text = "EXIT"

[node name="SimonDalvai" type="LinkButton" parent="Content"]
Expand Down Expand Up @@ -179,12 +179,9 @@ margin_right = 1148.85
margin_bottom = 894.054
rect_scale = Vector2( 0.507877, 0.507877 )
text = "What's new?
- New balls
- Available on itch.io
and F-Droid
- Bugfix in Store
- Info screen with license
infos and more
- Gramamr fixes thanks to @RustoMCSpit
- Bot vs Bot mode thanks to @MxtAppz
Enjoy!"
__meta__ = {
Expand Down
2 changes: 1 addition & 1 deletion game/src/ui/statistics/Statistics.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func _ready():
$GridContainer.add_child(played_label)

var win_label = Label.new()
win_label.set_text(str(Global.league_stats[league]["wins"]))
win_label.set_text(str(Global.league_stats[league]["win"]))
$GridContainer.add_child(win_label)


Expand Down

0 comments on commit 5793347

Please sign in to comment.