Cursor rule
.cursor/rules/imagenode.mdc[object Object]
Cursor rules
Quality
50/100
Scores the file, not the repository.Length
166 words
6 headings · 2 code blocksRepository
2
— · pushed 443 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Bevy 0.15 UI Image Component Changes78## Deprecated Components9- `SpriteBundle` - Deprecated in favor of using `Sprite` component directly10- `Text2dBundle`, `NodeBundle`, `Camera2dBundle`, `SpatialBundle` - All deprecated in favor of direct component usage11- `UiImage` - Renamed to `ImageNode`1213## Migration Guide1415### World Space Images (formerly `SpriteBundle`)16```rust17// OLD (deprecated)18commands.spawn(SpriteBundle {19 sprite: Sprite {20 custom_size: Some(Vec2::new(100.0, 100.0)),21 ..default()22 },23 transform: Transform::from_xyz(0.0, 0.0, 0.0),24 image: asset_server.load("image.png"),25 ..default()26});2728// NEW29commands.spawn((30 Sprite {31 custom_size: Some(Vec2::new(100.0, 100.0)),32 ..default()33 },34 Transform::from_xyz(0.0, 0.0, 0.0),35 asset_server.load::<Image>("image.png"),36));37```3839### UI Images (formerly using `UiImage`)40```rust41// OLD (deprecated)42commands.spawn((43 Node {44 width: Val::Px(100.0),45 height: Val::Px(100.0),46 ..default()47 },48 UiImage::new(asset_server.load("image.png")),49));5051// NEW52commands.spawn((53 Node {54 width: Val::Px(100.0),55 height: Val::Px(100.0),56 ..default()57 },58 ImageNode {59 image: asset_server.load("image.png"),60 ..default()61 },62));63```6465## Important Notes66- When using `Sprite` directly, it automatically adds `Transform` and `Visibility` components67- `ImageNode` field names have changed - use `image` instead of `texture`68- Required Components are now the preferred Bevy approach over Bundles
Also in tyler274/rummage
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| tyler274/rummage.cursor/rules/book_editing.mdc · 2 | Cursor rules | no sections | 4/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/bands_of_light_ui.mdc · 2 | Cursor rules | no sections | 16/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/bevy_rand.mdc · 2 | Cursor rules | styledeploymentdo-not | 61/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/cards.mdc · 2 | Cursor rules | no sections | 24/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/compile_check.mdc · 2 | Cursor rules | build | 28/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/general.mdc · 2 | Cursor rules | no sections | 30/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/git_commits.mdc · 2 | Cursor rules | archtypesgit | 54/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/mtg.mdc · 2 | Cursor rules | no sections | 4/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/mtgjson_importer.mdc · 2 | Cursor rules | no sections | 24/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/save.mdc · 2 | Cursor rules | no sections | 24/100 | 3 days ago | |
| tyler274/rummage.cursor/rules/testing.mdc · 2 | Cursor rules | testarch | 66/100 | 3 days ago |
Diff against .cursor/rules/book_editing.mdc Diff against .cursor/rules/bands_of_light_ui.mdc Diff against .cursor/rules/bevy_rand.mdc Diff against .cursor/rules/cards.mdc Diff against .cursor/rules/compile_check.mdc Diff against .cursor/rules/general.mdc Diff against .cursor/rules/git_commits.mdc Diff against .cursor/rules/mtg.mdc Diff against .cursor/rules/mtgjson_importer.mdc Diff against .cursor/rules/save.mdc Diff against .cursor/rules/testing.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49 | Cursor rules | setupbuildteststyle+4 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4k | Cursor rules | teststylearchtypes+2 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago |
