1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-07-15 09:15:51 +00:00

adjust design of skip cutscene popup

This commit is contained in:
Alula 2022-02-12 09:25:13 +01:00
parent 99c4798bed
commit 680294def8
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -1934,22 +1934,22 @@ impl Scene for GameScene {
(pos_x * state.scale) as isize, (pos_x * state.scale) as isize,
(pos_y * state.scale) as isize, (pos_y * state.scale) as isize,
((20.0 + width) * state.scale) as isize, ((20.0 + width) * state.scale) as isize,
((20.0 + line_height) * state.scale) as isize, ((10.0 + line_height) * state.scale) as isize,
); );
draw_rect(ctx, rect, Color::from_rgb(0, 0, 32))?; draw_rect(ctx, rect, Color::from_rgb(0, 0, 32))?;
rect.right = rect.left + (w * state.scale) as isize; rect.right = rect.left + (w * state.scale) as isize;
draw_rect(ctx, rect, Color::from_rgb(160, 181, 222))?; draw_rect(ctx, rect, Color::from_rgb(128, 128, 160))?;
rect.left = ((state.canvas_size.0 - w) * state.scale) as isize; rect.left = ((state.canvas_size.0 - w) * state.scale) as isize;
rect.right = rect.left + (w * state.scale) as isize; rect.right = rect.left + (w * state.scale) as isize;
draw_rect(ctx, rect, Color::from_rgb(160, 181, 222))?; draw_rect(ctx, rect, Color::from_rgb(128, 128, 160))?;
state.font.draw_text_with_shadow( state.font.draw_text_with_shadow(
text.chars(), text.chars(),
pos_x + 10.0, pos_x + 10.0,
pos_y + 10.0, pos_y + 5.0,
&state.constants, &state.constants,
&mut state.texture_set, &mut state.texture_set,
ctx, ctx,