mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-12-01 08:37:23 +00:00
Minor rendering tweak [ci skip]
This commit is contained in:
parent
02a9cac305
commit
7c07986b5d
|
|
@ -79,7 +79,6 @@ impl TouchControls {
|
||||||
texture_set: &mut TextureSet,
|
texture_set: &mut TextureSet,
|
||||||
ctx: &mut Context,
|
ctx: &mut Context,
|
||||||
) -> GameResult {
|
) -> GameResult {
|
||||||
let batch = texture_set.get_or_load_batch(ctx, constants, "builtin/touch")?;
|
|
||||||
let color = (255, 255, 255, 160);
|
let color = (255, 255, 255, 160);
|
||||||
|
|
||||||
let (left, top, right, bottom) = screen_insets_scaled(ctx, scale);
|
let (left, top, right, bottom) = screen_insets_scaled(ctx, scale);
|
||||||
|
|
@ -87,6 +86,7 @@ impl TouchControls {
|
||||||
match self.control_type {
|
match self.control_type {
|
||||||
TouchControlType::None => {}
|
TouchControlType::None => {}
|
||||||
TouchControlType::Dialog => {
|
TouchControlType::Dialog => {
|
||||||
|
let batch = texture_set.get_or_load_batch(ctx, constants, "builtin/touch")?;
|
||||||
// Fast-Forward
|
// Fast-Forward
|
||||||
batch.add_rect_tinted(
|
batch.add_rect_tinted(
|
||||||
canvas_size.0 - (4.0 + 48.0) + 8.0 - right,
|
canvas_size.0 - (4.0 + 48.0) + 8.0 - right,
|
||||||
|
|
@ -98,6 +98,7 @@ impl TouchControls {
|
||||||
batch.draw(ctx)?;
|
batch.draw(ctx)?;
|
||||||
}
|
}
|
||||||
TouchControlType::Controls => {
|
TouchControlType::Controls => {
|
||||||
|
let batch = texture_set.get_or_load_batch(ctx, constants, "builtin/touch")?;
|
||||||
// Movement
|
// Movement
|
||||||
for x in 0..3 {
|
for x in 0..3 {
|
||||||
for y in 0..3 {
|
for y in 0..3 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue