summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'app/components')
-rw-r--r--app/components/label.rb13
-rw-r--r--app/components/singleton_score.rb4
2 files changed, 17 insertions, 0 deletions
diff --git a/app/components/label.rb b/app/components/label.rb
new file mode 100644
index 0000000..25b5529
--- /dev/null
+++ b/app/components/label.rb
@@ -0,0 +1,13 @@
+FF::Cmp.new("Label", props: {
+ x: 0,
+ y: 0,
+ text: 'label',
+ size_enum: 2,
+ alignment_enum: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ a: 255,
+ font: "font.ttf",
+ vertical_alignment_enum: 0
+})
diff --git a/app/components/singleton_score.rb b/app/components/singleton_score.rb
new file mode 100644
index 0000000..4f6514b
--- /dev/null
+++ b/app/components/singleton_score.rb
@@ -0,0 +1,4 @@
+FF::Cmp.new('SingletonScore',
+ score: 0,
+ singleton: true)
+FF::Cmp::SingletonScore.new