Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayak UI 0.11
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
Kayak UI 0.11
Commits
ee29cae6
Commit
ee29cae6
authored
3 years ago
by
StarArawn
Browse files
Options
Downloads
Patches
Plain Diff
Fixed missing layout stuff.
parent
737da2b6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cargo.lock
+2
-0
2 additions, 0 deletions
Cargo.lock
bevy_kayak_ui/src/render/unified/font/extract.rs
+7
-3
7 additions, 3 deletions
bevy_kayak_ui/src/render/unified/font/extract.rs
with
9 additions
and
3 deletions
Cargo.lock
+
2
−
0
View file @
ee29cae6
...
...
@@ -1900,6 +1900,8 @@ version = "0.1.0"
dependencies = [
"anyhow",
"bevy",
"bytemuck",
"crevice",
"serde",
"serde_json",
"serde_path_to_error",
...
...
This diff is collapsed.
Click to expand it.
bevy_kayak_ui/src/render/unified/font/extract.rs
+
7
−
3
View file @
ee29cae6
...
...
@@ -4,7 +4,7 @@ use bevy::{
sprite2
::
Rect
,
};
use
kayak_core
::
render_primitive
::
RenderPrimitive
;
use
kayak_font
::
KayakFont
;
use
kayak_font
::
{
CoordinateSystem
,
KayakFont
}
;
use
crate
::{
render
::
unified
::
pipeline
::{
ExtractQuadBundle
,
ExtractedQuad
,
UIQuadType
},
...
...
@@ -52,8 +52,12 @@ pub fn extract_texts(
let
font
=
font
.unwrap
();
let
chars_layouts
=
font
.get_layout
(
Vec2
::
new
(
layout
.posx
,
layout
.posy
),
content
,
font_size
);
let
chars_layouts
=
font
.get_layout
(
CoordinateSystem
::
PositiveYDown
,
Vec2
::
new
(
layout
.posx
,
layout
.posy
),
content
,
font_size
,
);
for
char_layout
in
chars_layouts
{
extracted_texts
.push
(
ExtractQuadBundle
{
...
...
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