diff options
| author | troido <troido@protonmail.com> | 2020-02-21 20:01:24 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-21 20:01:24 +0100 |
| commit | 7e9784f23d1920640152d1bc99a0725f6f22d529 (patch) | |
| tree | 8b4e33f67b827d1a5123e82877f61c1a6805aeb7 /src/componentwrapper.rs | |
| parent | 8169718d7e0b189acdf69c14ee817d2c6aa684e1 (diff) | |
visible component now also has a name
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 5 |
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}; |
