Skip to content

Commit 149d5dc

Browse files
committed
change submit button from placeholder
1 parent 5e94aba commit 149d5dc

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

assets/images/submit-button.png

28.6 KB
Loading

src/game/assets.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ pub enum ImageKey {
7070
TitleHand,
7171
StartButton,
7272
CreditsButton,
73+
SubmitButton,
7374
}
7475

7576
impl AssetKey for ImageKey {
@@ -332,6 +333,15 @@ impl FromWorld for HandleMap<ImageKey> {
332333
},
333334
),
334335
),
336+
(
337+
ImageKey::SubmitButton,
338+
asset_server.load_with_settings(
339+
"images/submit-button.png",
340+
|settings: &mut ImageLoaderSettings| {
341+
settings.sampler = ImageSampler::nearest();
342+
},
343+
),
344+
),
335345
]
336346
.into()
337347
}

src/screen/playing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ fn game_over(
219219
..default()
220220
},
221221
image: UiImage {
222-
texture: images[&ImageKey::StartButton].clone_weak(),
222+
texture: images[&ImageKey::SubmitButton].clone_weak(),
223223
..default()
224224
},
225225
..default()

0 commit comments

Comments
 (0)