Skip to content

Commit 94f5ce7

Browse files
committed
update egui debug integration
1 parent 1986f6e commit 94f5ce7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

bevy_ios_iap_egui/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.1"
44
edition = "2021"
55

66
[dependencies]
7-
bevy_ios_iap = "0.5"
7+
bevy_ios_iap = { path = "../bevy_ios_iap" }
88
bevy = { version = "0.15", default-features = false }
99
bevy_egui = { version = "0.32", default-features = false }
1010
egui_extras = { version = "0.30" }

bevy_ios_iap_egui/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ fn ios_iap_ui(ui: &mut egui::Ui, res: &mut ResMut<DebugIosIap>) {
202202
header.col(|ui| {
203203
ui.heading("id");
204204
});
205+
header.col(|ui| {
206+
ui.heading("reason (iOS 17+)");
207+
});
205208
header.col(|ui| {
206209
ui.heading("product");
207210
});
@@ -215,6 +218,9 @@ fn ios_iap_ui(ui: &mut egui::Ui, res: &mut ResMut<DebugIosIap>) {
215218
row.col(|ui| {
216219
ui.label(p.id.to_string());
217220
});
221+
row.col(|ui| {
222+
ui.label(format!("{:?}", p.reason));
223+
});
218224
row.col(|ui| {
219225
ui.label(p.product_id.clone());
220226
});

0 commit comments

Comments
 (0)