Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bevy Cosmic Edit
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Bevy Forks
Bevy Cosmic Edit
Commits
fbc9b7a9
Commit
fbc9b7a9
authored
1 year ago
by
sam edelsten
Browse files
Options
Downloads
Patches
Plain Diff
fix inconsistent naming
parent
7409fd36
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/basic_sprite.rs
+1
-1
1 addition, 1 deletion
examples/basic_sprite.rs
examples/multiple_sprites.rs
+2
-2
2 additions, 2 deletions
examples/multiple_sprites.rs
src/lib.rs
+2
-2
2 additions, 2 deletions
src/lib.rs
with
5 additions
and
5 deletions
examples/basic_sprite.rs
+
1
−
1
View file @
fbc9b7a9
...
@@ -32,7 +32,7 @@ fn setup(mut commands: Commands, windows: Query<&Window, With<PrimaryWindow>>) {
...
@@ -32,7 +32,7 @@ fn setup(mut commands: Commands, windows: Query<&Window, With<PrimaryWindow>>) {
},
},
text_position
:
CosmicTextPosition
::
Center
,
text_position
:
CosmicTextPosition
::
Center
,
cosmic_attrs
:
CosmicAttrs
(
AttrsOwned
::
new
(
attrs
)),
cosmic_attrs
:
CosmicAttrs
(
AttrsOwned
::
new
(
attrs
)),
text
:
CosmicText
::
OneStyle
(
"😀😀😀 x => y"
.to_string
()),
set_
text
:
CosmicText
::
OneStyle
(
"😀😀😀 x => y"
.to_string
()),
..
default
()
..
default
()
};
};
...
...
This diff is collapsed.
Click to expand it.
examples/multiple_sprites.rs
+
2
−
2
View file @
fbc9b7a9
...
@@ -37,7 +37,7 @@ fn setup(mut commands: Commands, windows: Query<&Window, With<PrimaryWindow>>) {
...
@@ -37,7 +37,7 @@ fn setup(mut commands: Commands, windows: Query<&Window, With<PrimaryWindow>>) {
transform
:
Transform
::
from_translation
(
Vec3
::
new
(
-
primary_window
.width
()
/
4.
,
0.
,
1.
)),
transform
:
Transform
::
from_translation
(
Vec3
::
new
(
-
primary_window
.width
()
/
4.
,
0.
,
1.
)),
text_position
:
CosmicTextPosition
::
Center
,
text_position
:
CosmicTextPosition
::
Center
,
background_color
:
BackgroundColor
(
Color
::
ALICE_BLUE
),
background_color
:
BackgroundColor
(
Color
::
ALICE_BLUE
),
text
:
CosmicText
::
OneStyle
(
"😀😀😀 x => y"
.to_string
()),
set_
text
:
CosmicText
::
OneStyle
(
"😀😀😀 x => y"
.to_string
()),
..
default
()
..
default
()
};
};
...
@@ -58,7 +58,7 @@ fn setup(mut commands: Commands, windows: Query<&Window, With<PrimaryWindow>>) {
...
@@ -58,7 +58,7 @@ fn setup(mut commands: Commands, windows: Query<&Window, With<PrimaryWindow>>) {
)),
)),
text_position
:
CosmicTextPosition
::
Center
,
text_position
:
CosmicTextPosition
::
Center
,
background_color
:
BackgroundColor
(
Color
::
GRAY
.with_a
(
0.5
)),
background_color
:
BackgroundColor
(
Color
::
GRAY
.with_a
(
0.5
)),
text
:
CosmicText
::
OneStyle
(
"Widget_2. Click on me"
.to_string
()),
set_
text
:
CosmicText
::
OneStyle
(
"Widget_2. Click on me"
.to_string
()),
..
default
()
..
default
()
};
};
...
...
This diff is collapsed.
Click to expand it.
src/lib.rs
+
2
−
2
View file @
fbc9b7a9
...
@@ -340,7 +340,7 @@ pub struct CosmicEditSpriteBundle {
...
@@ -340,7 +340,7 @@ pub struct CosmicEditSpriteBundle {
pub
max_lines
:
CosmicMaxLines
,
pub
max_lines
:
CosmicMaxLines
,
/// How many characters are allowed in buffer, 0 for no limit
/// How many characters are allowed in buffer, 0 for no limit
pub
max_chars
:
CosmicMaxChars
,
pub
max_chars
:
CosmicMaxChars
,
pub
text
:
CosmicText
,
pub
set_
text
:
CosmicText
,
}
}
impl
Default
for
CosmicEditSpriteBundle
{
impl
Default
for
CosmicEditSpriteBundle
{
...
@@ -359,7 +359,7 @@ impl Default for CosmicEditSpriteBundle {
...
@@ -359,7 +359,7 @@ impl Default for CosmicEditSpriteBundle {
background_image
:
Default
::
default
(),
background_image
:
Default
::
default
(),
max_lines
:
Default
::
default
(),
max_lines
:
Default
::
default
(),
max_chars
:
Default
::
default
(),
max_chars
:
Default
::
default
(),
text
:
Default
::
default
(),
set_
text
:
Default
::
default
(),
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment