Skip to content
Snippets Groups Projects
Verified Commit 8e259e69 authored by Louis's avatar Louis :fire:
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
target/
target-android/
dist/
raw/
*.ex.png
*.mp4
\ No newline at end of file
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<module type="EMPTY_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/micro_ui.iml" filepath="$PROJECT_DIR$/.idea/micro_ui.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
[package]
name = "micro_ui"
version = "0.1.0"
edition = "2021"
[dependencies]
micro_musicbox = "0.9.0"
bevy = "0.13"
serde = { version = "1.0.202", features = ["derive"] }
num-traits = "0.2.19"
kayak_ui = { git = "https://lab.lcr.gr/microhacks/bevy-forks/kayak-ui-13.git", rev = "93370f4172d8bbaf917698761eb039e7fe360f76" }
kayak_font = { git = "https://lab.lcr.gr/microhacks/bevy-forks/kayak-ui-13", rev = "93370f4172d8bbaf917698761eb039e7fe360f76" }
\ No newline at end of file
hard_tabs = true
use_field_init_shorthand = true
use_try_shorthand = true
\ No newline at end of file
mod button;
mod inset_icon;
pub use button::{
button_props, render_button_widget, ButtonWidget, ButtonWidgetProps, ButtonWidgetState,
};
pub use inset_icon::{render_inset_icon_widget, InsetIconProps, InsetIconWidget};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
use bevy::prelude::FromReflect;
use kayak_ui::prelude::{Edge, StyleProp, Units};
#[inline(always)]
pub fn px(val: f32) -> StyleProp<Units> {
StyleProp::Value(Units::Pixels(val))
}
#[inline(always)]
pub fn edge_px(val: f32) -> StyleProp<Edge<Units>> {
StyleProp::Value(Edge::all(Units::Pixels(val)))
}
#[inline(always)]
pub fn pct(val: f32) -> StyleProp<Units> {
StyleProp::Value(Units::Percentage(val))
}
#[inline(always)]
pub fn stretch(val: f32) -> StyleProp<Units> {
StyleProp::Value(Units::Stretch(val))
}
#[inline(always)]
pub fn val_auto() -> StyleProp<Units> {
StyleProp::Value(Units::Auto)
}
#[inline(always)]
pub fn value<T: Clone + Default + FromReflect>(val: T) -> StyleProp<T> {
StyleProp::Value(val)
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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