Skip to content
Snippets Groups Projects
Commit fe57fdcd authored by kjolnyr's avatar kjolnyr
Browse files

make rsx macro return the root entity

parent a046e334
No related branches found
No related tags found
No related merge requests found
Showing
with 28 additions and 28 deletions
...@@ -253,7 +253,7 @@ fn startup( ...@@ -253,7 +253,7 @@ fn startup(
/> />
</WindowBundle> </WindowBundle>
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn((UICameraBundle::new(widget_context), GameUI)); commands.spawn((UICameraBundle::new(widget_context), GameUI));
} }
......
...@@ -54,7 +54,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sed tellus neque. ...@@ -54,7 +54,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sed tellus neque.
</ClipBundle> </ClipBundle>
</NinePatchBundle> </NinePatchBundle>
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -98,7 +98,7 @@ fn my_widget_render( ...@@ -98,7 +98,7 @@ fn my_widget_render(
} }
}} }}
</ElementBundle> </ElementBundle>
} };
} }
true true
...@@ -128,7 +128,7 @@ fn startup( ...@@ -128,7 +128,7 @@ fn startup(
<KayakAppBundle> <KayakAppBundle>
<MyWidgetBundle /> <MyWidgetBundle />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -124,7 +124,7 @@ fn update_theme_button( ...@@ -124,7 +124,7 @@ fn update_theme_button(
}, },
)} )}
/> />
} };
} }
} }
} }
...@@ -182,7 +182,7 @@ fn update_theme_selector( ...@@ -182,7 +182,7 @@ fn update_theme_selector(
<ThemeButtonBundle theme_button={ThemeButton { theme: solar_theme }} /> <ThemeButtonBundle theme_button={ThemeButton { theme: solar_theme }} />
<ThemeButtonBundle theme_button={ThemeButton { theme: vector_theme }} /> <ThemeButtonBundle theme_button={ThemeButton { theme: vector_theme }} />
</ElementBundle> </ElementBundle>
} };
} }
true true
...@@ -312,7 +312,7 @@ fn update_theme_demo( ...@@ -312,7 +312,7 @@ fn update_theme_demo(
} }
</BackgroundBundle> </BackgroundBundle>
</ElementBundle> </ElementBundle>
} };
} }
} }
} }
...@@ -375,7 +375,7 @@ fn startup( ...@@ -375,7 +375,7 @@ fn startup(
/> />
</WindowBundle> </WindowBundle>
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -21,7 +21,7 @@ fn startup( ...@@ -21,7 +21,7 @@ fn startup(
}} }}
/> />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -28,7 +28,7 @@ fn startup( ...@@ -28,7 +28,7 @@ fn startup(
}} }}
/> />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -107,7 +107,7 @@ fn menu_button_render( ...@@ -107,7 +107,7 @@ fn menu_button_render(
}} }}
/> />
</NinePatchBundle> </NinePatchBundle>
} };
} }
true true
} }
...@@ -216,7 +216,7 @@ fn startup( ...@@ -216,7 +216,7 @@ fn startup(
/> />
</NinePatchBundle> </NinePatchBundle>
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -49,7 +49,7 @@ fn startup( ...@@ -49,7 +49,7 @@ fn startup(
}} }}
/> />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -132,7 +132,7 @@ fn startup( ...@@ -132,7 +132,7 @@ fn startup(
}); });
} }
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -80,7 +80,7 @@ fn startup( ...@@ -80,7 +80,7 @@ fn startup(
}} }}
/> />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle { commands.spawn(UICameraBundle {
camera: Camera { camera: Camera {
...@@ -147,7 +147,7 @@ fn startup( ...@@ -147,7 +147,7 @@ fn startup(
}} }}
/> />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn((UICameraBundle::new(widget_context), MainUI)); commands.spawn((UICameraBundle::new(widget_context), MainUI));
} }
......
...@@ -58,7 +58,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sed tellus neque. ...@@ -58,7 +58,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sed tellus neque.
</ScrollContextProviderBundle> </ScrollContextProviderBundle>
</WindowBundle> </WindowBundle>
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -74,7 +74,7 @@ fn current_count_render( ...@@ -74,7 +74,7 @@ fn current_count_render(
)} )}
/> />
</ElementBundle> </ElementBundle>
} };
} }
true true
...@@ -127,7 +127,7 @@ fn startup( ...@@ -127,7 +127,7 @@ fn startup(
</WindowBundle> </WindowBundle>
</WindowContextProviderBundle> </WindowContextProviderBundle>
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -52,7 +52,7 @@ pub fn tab_render( ...@@ -52,7 +52,7 @@ pub fn tab_render(
if tab_context.current_index == tab.index { if tab_context.current_index == tab.index {
rsx! { rsx! {
<BackgroundBundle styles={styles} children={children.clone()} /> <BackgroundBundle styles={styles} children={children.clone()} />
} };
} }
} }
} }
......
...@@ -86,7 +86,7 @@ pub fn tab_button_render( ...@@ -86,7 +86,7 @@ pub fn tab_button_render(
}} }}
on_event={on_event} on_event={on_event}
/> />
} };
} }
} }
true true
......
...@@ -85,7 +85,7 @@ fn startup( ...@@ -85,7 +85,7 @@ fn startup(
</TabContextProviderBundle> </TabContextProviderBundle>
</WindowBundle> </WindowBundle>
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -32,7 +32,7 @@ fn second_sys( ...@@ -32,7 +32,7 @@ fn second_sys(
}} }}
/> />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -90,7 +90,7 @@ fn startup( ...@@ -90,7 +90,7 @@ fn startup(
); );
rsx! { rsx! {
<KayakAppBundle><MyWidgetBundle props={MyWidgetProps { foo: 0 }} /></KayakAppBundle> <KayakAppBundle><MyWidgetBundle props={MyWidgetProps { foo: 0 }} /></KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -78,7 +78,7 @@ fn update_text_box_example( ...@@ -78,7 +78,7 @@ fn update_text_box_example(
on_change={on_change2} on_change={on_change2}
/> />
</ElementBundle> </ElementBundle>
} };
} }
true true
} }
...@@ -118,7 +118,7 @@ fn startup( ...@@ -118,7 +118,7 @@ fn startup(
<TextBoxExampleBundle /> <TextBoxExampleBundle />
</WindowBundle> </WindowBundle>
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -66,7 +66,7 @@ fn startup( ...@@ -66,7 +66,7 @@ fn startup(
styles={atlas_styles} styles={atlas_styles}
/> />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
...@@ -111,6 +111,6 @@ pub fn render_todo_input( ...@@ -111,6 +111,6 @@ pub fn render_todo_input(
on_event={handle_click} on_event={handle_click}
/> />
</ElementBundle> </ElementBundle>
} };
true true
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment