Skip to content
Snippets Groups Projects
Unverified Commit 24dfde2a authored by atornity's avatar atornity Committed by GitHub
Browse files

Update chapter_1.md

add_plugin(KayakWidgetsContextPlugin) is required for it to work (I don't know why lol)
parent 910a00cd
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ fn startup( ...@@ -20,6 +20,7 @@ fn startup(
font_mapping.set_default(asset_server.load("roboto.kayak_font")); font_mapping.set_default(asset_server.load("roboto.kayak_font"));
let mut widget_context = KayakRootContext::new(); let mut widget_context = KayakRootContext::new();
widget_context.add_plugin(KayakWidgetsContextPlugin);
let parent_id = None; let parent_id = None;
// The rsx! macro expects a parent_id, a widget_context from the user. // The rsx! macro expects a parent_id, a widget_context from the user.
...@@ -35,7 +36,7 @@ fn startup( ...@@ -35,7 +36,7 @@ fn startup(
}} }}
/> />
</KayakAppBundle> </KayakAppBundle>
} };
commands.spawn(UICameraBundle::new(widget_context)); commands.spawn(UICameraBundle::new(widget_context));
} }
......
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