mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
v0.12.8
This commit is contained in:
parent
229ce79d46
commit
4766daba0a
4 changed files with 20 additions and 12 deletions
2
noita-proxy/Cargo.lock
generated
2
noita-proxy/Cargo.lock
generated
|
@ -1931,7 +1931,7 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
|
|||
|
||||
[[package]]
|
||||
name = "noita-proxy"
|
||||
version = "0.12.7"
|
||||
version = "0.12.8"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"bitcode",
|
||||
|
|
|
@ -4,7 +4,7 @@ members = ["tangled"]
|
|||
[package]
|
||||
name = "noita-proxy"
|
||||
description = "Noita Entangled Worlds companion app."
|
||||
version = "0.12.7"
|
||||
version = "0.12.8"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
|
@ -77,6 +77,7 @@ pub struct App {
|
|||
saved_state: AppSavedState,
|
||||
modmanager_settings: ModmanagerSettings,
|
||||
self_update: SelfUpdateManager,
|
||||
show_map_plot: bool,
|
||||
}
|
||||
|
||||
const MODMANAGER: &str = "modman";
|
||||
|
@ -133,6 +134,7 @@ impl App {
|
|||
saved_state,
|
||||
modmanager_settings,
|
||||
self_update: SelfUpdateManager::new(),
|
||||
show_map_plot: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -360,7 +362,7 @@ fn draw_bg(ui: &mut Ui) {
|
|||
|
||||
impl eframe::App for App {
|
||||
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
|
||||
ctx.request_repaint_after(Duration::from_secs(1));
|
||||
ctx.request_repaint_after(Duration::from_millis(500));
|
||||
match &self.state {
|
||||
AppState::Connect => {
|
||||
self.connect_screen(ctx);
|
||||
|
@ -429,14 +431,20 @@ impl eframe::App for App {
|
|||
ui.label(format!("Peer state: {}", netman.peer.state()));
|
||||
}
|
||||
|
||||
if self.show_map_plot {
|
||||
let mut series = Vec::new();
|
||||
netman.world_info.with_player_infos(|_peer, info| {
|
||||
series.push([info.x, -info.y]);
|
||||
});
|
||||
let points = Points::new(series);
|
||||
Plot::new("map").show(ui, |plot| {
|
||||
let points = Points::new(series).radius(10.0);
|
||||
Plot::new("map").data_aspect(1.0).show(ui, |plot| {
|
||||
plot.points(points);
|
||||
})
|
||||
});
|
||||
} else {
|
||||
if ui.button("Show debug plot").clicked() {
|
||||
self.show_map_plot = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
AppState::Error { message } => {
|
||||
|
|
|
@ -14,7 +14,7 @@ local KEY_WORLD_END = 1
|
|||
|
||||
local CHUNK_SIZE = 128
|
||||
|
||||
function module.on_world_update_host()
|
||||
function module.on_world_update()
|
||||
if GameGetFrameNum() % 30 ~= 6 then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue