summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-21 20:01:24 +0100
committertroido <troido@protonmail.com>2020-02-21 20:01:24 +0100
commit7e9784f23d1920640152d1bc99a0725f6f22d529 (patch)
tree8b4e33f67b827d1a5123e82877f61c1a6805aeb7 /src/componentwrapper.rs
parent8169718d7e0b189acdf69c14ee817d2c6aa684e1 (diff)
visible component now also has a name
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs
index 8ee4e0b..5b9673f 100644
--- a/src/componentwrapper.rs
+++ b/src/componentwrapper.rs
@@ -84,10 +84,11 @@ macro_rules! components {
}
components!(
- Visible (sprite: String, height: Float) {
+ Visible (name: String, sprite: String, height: Float) {
Visible {
sprite: Sprite{name: sprite},
- height
+ height,
+ name
}
};
Blocking () {Blocking};