add debug menu feature to change blocked_status of GameNetworking

This commit is contained in:
2025-04-23 14:32:29 +01:00
parent 383224c2fa
commit 53030cc5f7
3 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ pub struct App {
pub anti_afk: features::anti_afk::AntiAfk,
empty_session: features::empty_session::EmptySession,
force_close: features::force_close::ForceClose,
game_networking: features::game_networking::GameNetworking,
pub game_networking: features::game_networking::GameNetworking,
pub launch: features::launch::Launch,
}
+9
View File
@@ -50,6 +50,15 @@ impl App {
};
ui.label(format!("focused: \"{current_title}\""));
});
ui.horizontal(|ui| {
ui.label("blocked_status");
egui::ComboBox::from_id_salt("blocked_status")
.selected_text(&self.game_networking.blocked_status.to_string())
.show_ui(ui, |ui| {
tools::build_menu(ui, &mut self.game_networking.blocked_status);
});
});
});
ui.collapsing("anti afk", |ui| {
ui.label(format!(