aboutsummaryrefslogtreecommitdiff
path: root/source/shared/UIBackground.hx
diff options
context:
space:
mode:
Diffstat (limited to 'source/shared/UIBackground.hx')
-rw-r--r--source/shared/UIBackground.hx14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/shared/UIBackground.hx b/source/shared/UIBackground.hx
new file mode 100644
index 0000000..de3b4c9
--- /dev/null
+++ b/source/shared/UIBackground.hx
@@ -0,0 +1,14 @@
+package shared;
+
+import flixel.FlxSprite;
+import flixel.util.FlxColor;
+
+class UIBackground extends FlxSprite
+{
+ public function new(x:Float = 0, y:Float = 0, width:Int, height:Int, color:FlxColor)
+ {
+ super(x, y);
+ makeGraphic(width, height, color);
+ alpha = 0.5;
+ }
+}