Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct comments about purpose of UI element #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ fn init_sprites(world: &mut World, sprites: &[SpriteRender], dimensions: &Screen
}
}

/// Creates a simple UI background and a UI text label
/// Creates a solid color UI background and a UI text label over it.
/// This is the pure code only way to create UI with amethyst.
pub fn create_ui_example(world: &mut World) {
// this creates the simple gray background UI element.
// Create a pink rectangle to be the background for the UI text label.
let ui_background = world
.create_entity()
.with(UiImage::SolidColor([0.6, 0.1, 0.2, 1.0]))
Expand Down