diff options
author | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 02:49:09 +0200 |
---|---|---|
committer | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 02:49:09 +0200 |
commit | 4961e6a3f51990bb053cd8b18827e39aaf3e4e7c (patch) | |
tree | 41387099b13b6aca4ac69cdb3a1124a85825d600 /godot/scenes/objects/Scoreboard.gd | |
parent | 88aeae3f02bfb19b83212599ac1eb950beb805b3 (diff) | |
parent | 8b932533e6d25a80f185bae299351426a4ca157e (diff) | |
download | 2022-4961e6a3f51990bb053cd8b18827e39aaf3e4e7c.tar.gz 2022-4961e6a3f51990bb053cd8b18827e39aaf3e4e7c.tar.bz2 2022-4961e6a3f51990bb053cd8b18827e39aaf3e4e7c.zip |
Merge branch 'Scoreboard'
Diffstat (limited to 'godot/scenes/objects/Scoreboard.gd')
-rw-r--r-- | godot/scenes/objects/Scoreboard.gd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/godot/scenes/objects/Scoreboard.gd b/godot/scenes/objects/Scoreboard.gd new file mode 100644 index 0000000..0f6d32b --- /dev/null +++ b/godot/scenes/objects/Scoreboard.gd @@ -0,0 +1,22 @@ +extends Control + +func update_values(values, pars): + $Panel/GridContainer/Player0.text = "%d" % values[0] + $Panel/GridContainer/Player1.text = "%d" % values[1] + $Panel/GridContainer/Player2.text = "%d" % values[2] + $Panel/GridContainer/Player3.text = "%d" % values[3] + $Panel/GridContainer/Player4.text = "%d" % values[4] + $Panel/GridContainer/Player5.text = "%d" % values[5] + $Panel/GridContainer/Player6.text = "%d" % values[6] + $Panel/GridContainer/Player7.text = "%d" % values[7] + $Panel/GridContainer/Player8.text = "%d" % values[8] + + $Panel/GridContainer/Par0.text = "%d" % pars[0] + $Panel/GridContainer/Par1.text = "%d" % pars[1] + $Panel/GridContainer/Par2.text = "%d" % pars[2] + $Panel/GridContainer/Par3.text = "%d" % pars[3] + $Panel/GridContainer/Par4.text = "%d" % pars[4] + $Panel/GridContainer/Par5.text = "%d" % pars[5] + $Panel/GridContainer/Par6.text = "%d" % pars[6] + $Panel/GridContainer/Par7.text = "%d" % pars[7] + $Panel/GridContainer/Par8.text = "%d" % pars[8] |