Skip to content
Snippets Groups Projects
Commit 6ae32c95 authored by StarArawn's avatar StarArawn
Browse files

Format examples.

parent 2cfa90c6
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,8 @@ use bevy::{ ...@@ -6,8 +6,8 @@ use bevy::{
}; };
use bevy_kayak_ui::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle}; use bevy_kayak_ui::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle};
use kayak_core::Index; use kayak_core::Index;
use kayak_ui::widgets::App;
use kayak_ui::core::{rsx, widget}; use kayak_ui::core::{rsx, widget};
use kayak_ui::widgets::App;
use kayak_widgets::Window; use kayak_widgets::Window;
#[widget] #[widget]
......
...@@ -9,8 +9,8 @@ use kayak_core::{ ...@@ -9,8 +9,8 @@ use kayak_core::{
styles::{Style, StyleProp, Units}, styles::{Style, StyleProp, Units},
Bound, EventType, Index, MutableBound, OnEvent, Bound, EventType, Index, MutableBound, OnEvent,
}; };
use kayak_ui::widgets::App;
use kayak_ui::core::{rsx, widget}; use kayak_ui::core::{rsx, widget};
use kayak_ui::widgets::App;
use kayak_widgets::{Button, Text, Window}; use kayak_widgets::{Button, Text, Window};
#[widget] #[widget]
......
...@@ -5,14 +5,14 @@ use bevy::{ ...@@ -5,14 +5,14 @@ use bevy::{
PipelinedDefaultPlugins, PipelinedDefaultPlugins,
}; };
use bevy_kayak_ui::{BevyContext, BevyKayakUIPlugin, FontMapping, ImageManager, UICameraBundle}; use bevy_kayak_ui::{BevyContext, BevyKayakUIPlugin, FontMapping, ImageManager, UICameraBundle};
use kayak_widgets::{NinePatch, Text};
use kayak_core::{ use kayak_core::{
layout_cache::Space, layout_cache::Space,
styles::{LayoutType, Style, StyleProp, Units}, styles::{LayoutType, Style, StyleProp, Units},
widget, Bound, Children, EventType, Index, MutableBound, OnEvent, widget, Bound, Children, EventType, Index, MutableBound, OnEvent,
}; };
use kayak_ui::widgets::App;
use kayak_ui::core::rsx; use kayak_ui::core::rsx;
use kayak_ui::widgets::App;
use kayak_widgets::{NinePatch, Text};
#[widget] #[widget]
fn BlueButton(context: KayakContext, children: Children, styles: Option<Style>) { fn BlueButton(context: KayakContext, children: Children, styles: Option<Style>) {
......
...@@ -5,10 +5,10 @@ use bevy::{ ...@@ -5,10 +5,10 @@ use bevy::{
PipelinedDefaultPlugins, PipelinedDefaultPlugins,
}; };
use bevy_kayak_ui::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle}; use bevy_kayak_ui::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle};
use kayak_widgets::{Text, Window};
use kayak_core::{bind, Binding, Bound, Index, MutableBound}; use kayak_core::{bind, Binding, Bound, Index, MutableBound};
use kayak_ui::widgets::App;
use kayak_ui::core::{rsx, widget}; use kayak_ui::core::{rsx, widget};
use kayak_ui::widgets::App;
use kayak_widgets::{Text, Window};
#[derive(Clone, PartialEq)] #[derive(Clone, PartialEq)]
struct GlobalCount(pub u32); struct GlobalCount(pub u32);
......
...@@ -5,10 +5,10 @@ use bevy::{ ...@@ -5,10 +5,10 @@ use bevy::{
PipelinedDefaultPlugins, PipelinedDefaultPlugins,
}; };
use bevy_kayak_ui::{BevyContext, BevyKayakUIPlugin, ImageManager, UICameraBundle}; use bevy_kayak_ui::{BevyContext, BevyKayakUIPlugin, ImageManager, UICameraBundle};
use kayak_widgets::Image;
use kayak_core::Index; use kayak_core::Index;
use kayak_ui::widgets::App;
use kayak_ui::core::rsx; use kayak_ui::core::rsx;
use kayak_ui::widgets::App;
use kayak_widgets::Image;
fn startup( fn startup(
mut commands: Commands, mut commands: Commands,
......
...@@ -10,8 +10,8 @@ use kayak_core::{ ...@@ -10,8 +10,8 @@ use kayak_core::{
styles::{Style, StyleProp, Units}, styles::{Style, StyleProp, Units},
Index, Index,
}; };
use kayak_ui::widgets::App;
use kayak_ui::core::rsx; use kayak_ui::core::rsx;
use kayak_ui::widgets::App;
use kayak_widgets::NinePatch; use kayak_widgets::NinePatch;
fn startup( fn startup(
......
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