diff options
| author | arngo <[email protected]> | 2021-12-26 22:33:19 -0500 |
|---|---|---|
| committer | arngo <[email protected]> | 2021-12-26 22:33:19 -0500 |
| commit | 73d33929c11307f2589413a3901b574ccdc2a449 (patch) | |
| tree | 6799567bd7281abf0b87799bdd1bda2080908c17 /app/systems/ui | |
| parent | 09fe8467d670a9eace7c0c60e21e5aa81fc0b8e9 (diff) | |
| parent | 930802e49e33c87ef0fd2f102b9205a4098878d3 (diff) | |
| download | SteelWings-73d33929c11307f2589413a3901b574ccdc2a449.tar.gz SteelWings-73d33929c11307f2589413a3901b574ccdc2a449.zip | |
Merge branch 'score-dev' into development
Diffstat (limited to 'app/systems/ui')
| -rw-r--r-- | app/systems/ui/score.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/systems/ui/score.rb b/app/systems/ui/score.rb new file mode 100644 index 0000000..c761561 --- /dev/null +++ b/app/systems/ui/score.rb @@ -0,0 +1,7 @@ +FF::Sys.new("Score", priority: 50) do + score = FF::Cmp::SingletonScore[0] + score.score += 100 + score.entities[0].components[FF::Cmp::Label].each do |label| + label.props[:text] = score.score.to_s + end +end |
