Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d86ceddd7 | ||
|
|
d934c843eb | ||
|
|
b283b69f74 | ||
|
|
828acebb89 | ||
|
|
466cf29eb7 | ||
|
|
c7628c42d8 |
Generated
+492
-960
File diff suppressed because it is too large
Load Diff
+8
-8
@@ -4,18 +4,18 @@ description = "An emulator for the Virtual Boy."
|
||||
repository = "https://git.virtual-boy.com/PVB/lemur"
|
||||
publish = false
|
||||
license = "MIT"
|
||||
version = "0.12.4"
|
||||
version = "0.13.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
atoi = "2"
|
||||
audioadapter-buffers = "3"
|
||||
atoi = "3"
|
||||
audioadapter-buffers = "4"
|
||||
atomic = "0.6"
|
||||
bitflags = { version = "2", features = ["serde"] }
|
||||
bytemuck = { version = "1", features = ["derive"] }
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
cpal = { git = "https://github.com/sidit77/cpal.git", rev = "66ed6be" }
|
||||
cpal = "0.18"
|
||||
directories = "6"
|
||||
egui = { version = "0.34", features = ["persistence", "serde"] }
|
||||
egui_extras = { version = "0.34", features = ["image"] }
|
||||
@@ -25,21 +25,21 @@ egui-wgpu = { version = "0.34", features = ["winit"] }
|
||||
fxprof-processed-profile = "0.8"
|
||||
fixed = { version = "1.28", features = ["num-traits"] }
|
||||
gilrs = { version = "0.11", features = ["serde-serialize"] }
|
||||
gimli = "0.33"
|
||||
gimli = "0.34"
|
||||
hex = "0.4"
|
||||
image = { version = "0.25", default-features = false, features = ["png"] }
|
||||
itertools = "0.14"
|
||||
itertools = "0.15"
|
||||
normpath = "1"
|
||||
notify = "8"
|
||||
num-derive = "0.4"
|
||||
num-traits = "0.2"
|
||||
object = "0.39"
|
||||
oneshot = { version = "0.2", features = ["async", "std"] }
|
||||
pollster = "0.4"
|
||||
pollster = "1"
|
||||
rand = "0.10"
|
||||
rfd = "0.17"
|
||||
rtrb = "0.3"
|
||||
rubato = "2"
|
||||
rubato = "4"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
thread-priority = "3"
|
||||
|
||||
+4
-8
@@ -1,7 +1,7 @@
|
||||
# This Dockerfile produces a base image for builds.
|
||||
# It includes all dependencies necessary to cross-compile for Windows/MacOS/Linux.
|
||||
|
||||
FROM debian:bookworm AS osxcross
|
||||
FROM debian:trixie AS osxcross
|
||||
ADD --chmod=644 "https://apt.llvm.org/llvm-snapshot.gpg.key" /etc/apt/trusted.gpg.d/apt.llvm.org.asc
|
||||
WORKDIR /build/osxcross
|
||||
ADD "https://github.com/tpoechtrager/osxcross.git#47936a512273bb3b414b5a2e83043c92eabc7ae7" .
|
||||
@@ -9,25 +9,21 @@ ADD "https://github.com/joseluisq/macosx-sdks/releases/download/14.5/MacOSX14.5.
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ca-certificates
|
||||
COPY llvm.sources /etc/apt/sources.list.d/llvm.sources
|
||||
COPY install-llvm.sh .
|
||||
RUN apt-get update && \
|
||||
./install-llvm.sh && \
|
||||
apt-get install -y bash bzip2 git make patch xz-utils && \
|
||||
apt-get install -y bash bzip2 clang-22 git lld-22 llvm-22 make patch xz-utils && \
|
||||
ln -s $(which clang-22) /usr/bin/clang && \
|
||||
ln -s $(which clang++-22) /usr/bin/clang++ && \
|
||||
ln -s $(which ld64.lld-22) /usr/bin/ld64.lld && \
|
||||
SDK_VERSION=14.5 UNATTENDED=1 ENABLE_COMPILER_RT_INSTALL=1 TARGET_DIR=/osxcross ./build.sh
|
||||
|
||||
FROM rust:1.95-bookworm
|
||||
FROM rust:1.97-trixie
|
||||
ADD --chmod=644 "https://apt.llvm.org/llvm-snapshot.gpg.key" /etc/apt/trusted.gpg.d/apt.llvm.org.asc
|
||||
COPY llvm.sources /etc/apt/sources.list.d/llvm.sources
|
||||
COPY install-llvm.sh .
|
||||
RUN rustup target add x86_64-pc-windows-msvc && \
|
||||
rustup target add x86_64-apple-darwin && \
|
||||
rustup target add aarch64-apple-darwin && \
|
||||
apt-get update && \
|
||||
./install-llvm.sh && \
|
||||
apt-get install -y libc6-dev libasound2-dev libudev-dev genisoimage mingw-w64 && \
|
||||
apt-get install -y clang-22 lld-22 libc6-dev libasound2-dev libudev-dev genisoimage mingw-w64 && \
|
||||
cargo install cargo-bundle xwin && \
|
||||
xwin --accept-license splat --output xwin && \
|
||||
rm -rf .xwin-cache && \
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Hopefully temporary script to manually install working llvm packages.
|
||||
# The apt index for these is broken in bookworm, and upgrading to trixie
|
||||
# would make them depend on too new of a libc version.
|
||||
|
||||
# https://apt.llvm.org/bookworm/pool/main/l/llvm-toolchain-22/clang-22_22.1.0~%2B%2B20260223093050%2Bcd5897175d0d-1~exp1~20260223093246.28_amd64.deb
|
||||
PACKAGES=('clang-22' 'clang-tools-22' 'libclang-common-22-dev' 'libclang-cpp22' 'libclang-rt-22-dev' 'libclang1-22' 'libllvm22' 'lld-22' 'llvm-22' 'llvm-22-dev' 'llvm-22-linker-tools' 'llvm-22-runtime' 'llvm-22-tools')
|
||||
FILES=()
|
||||
URL='https://apt.llvm.org/bookworm/pool/main/l/llvm-toolchain-22'
|
||||
VERSION='22.1.0~%2B%2B20260223093050%2Bcd5897175d0d-1~exp1~20260223093246.28_amd64.deb'
|
||||
|
||||
apt-get install -y curl python3
|
||||
for package in "${PACKAGES[@]}"; do
|
||||
curl -O -L "$URL/${package}_$VERSION"
|
||||
FILES+=("./${package}_$VERSION")
|
||||
done
|
||||
|
||||
apt-get install -y "${FILES[@]}"
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
Types: deb deb-src
|
||||
URIs: http://apt.llvm.org/bookworm/
|
||||
Suites: llvm-toolchain-bookworm-22
|
||||
URIs: http://apt.llvm.org/trixie/
|
||||
Suites: llvm-toolchain-trixie-22
|
||||
Components: main
|
||||
|
||||
+9
-9
@@ -3,8 +3,8 @@ use std::time::Duration;
|
||||
use anyhow::{Result, bail};
|
||||
use audioadapter_buffers::direct::InterleavedSlice;
|
||||
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
|
||||
use rubato::Resampler;
|
||||
use tracing::error;
|
||||
use rubato::{Adjustable as _, Resampler};
|
||||
use tracing::warn;
|
||||
|
||||
pub struct Audio {
|
||||
#[allow(unused)]
|
||||
@@ -23,14 +23,14 @@ impl Audio {
|
||||
let Some(device) = host.default_output_device() else {
|
||||
bail!("No output device available");
|
||||
};
|
||||
let Some(config) = device
|
||||
.supported_output_configs()?
|
||||
.find(|c| c.channels() == 2 && c.sample_format().is_float())
|
||||
else {
|
||||
let default_rate = device.default_output_config()?.sample_rate();
|
||||
let Some(config) = device.supported_output_configs()?.find(|c| {
|
||||
c.channels() == 2 && c.sample_format().is_float() && c.contains_rate(default_rate)
|
||||
}) else {
|
||||
bail!("No suitable output config available");
|
||||
};
|
||||
let mut config = config.with_max_sample_rate().config();
|
||||
let resample_ratio = config.sample_rate.0 as f64 / VB_FREQUENCY as f64;
|
||||
let resample_ratio = config.sample_rate as f64 / VB_FREQUENCY as f64;
|
||||
let chunk_size = (834.0 * resample_ratio) as usize;
|
||||
let sampler = rubato::Async::new_poly(
|
||||
resample_ratio,
|
||||
@@ -48,7 +48,7 @@ impl Audio {
|
||||
rtrb::RingBuffer::new(sampler.output_frames_max() * 4);
|
||||
|
||||
let stream = device.build_output_stream(
|
||||
&config,
|
||||
config,
|
||||
move |data: &mut [f32], _| {
|
||||
let requested = data.len();
|
||||
let chunk = match sample_source.read_chunk(data.len()) {
|
||||
@@ -66,7 +66,7 @@ impl Audio {
|
||||
}
|
||||
chunk.commit_all();
|
||||
},
|
||||
move |error| error!(%error, "stream error"),
|
||||
move |error| warn!(%error, "stream error"),
|
||||
None,
|
||||
)?;
|
||||
stream.play()?;
|
||||
|
||||
@@ -946,6 +946,9 @@ pub struct EmulatorClient {
|
||||
}
|
||||
|
||||
impl EmulatorClient {
|
||||
pub fn has_player_2(&self) -> bool {
|
||||
self.sim_state(SimId::Player2) != SimState::Uninitialized
|
||||
}
|
||||
pub fn sim_state(&self, sim_id: SimId) -> SimState {
|
||||
self.sim_state[sim_id.to_index()].load(Ordering::Acquire)
|
||||
}
|
||||
|
||||
+3
-3
@@ -28,11 +28,11 @@ mod utils;
|
||||
mod vip;
|
||||
|
||||
pub trait AppWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
SimId::Player1
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
None
|
||||
}
|
||||
fn image_url(&self, name: &str) -> String {
|
||||
format!("vip://{}/{name}", self.sim_id())
|
||||
format!("vip://{}/{name}", self.sim_id().unwrap_or(SimId::Player1))
|
||||
}
|
||||
fn initial_viewport(&self) -> ViewportBuilder;
|
||||
fn show(&mut self, ui: &mut Ui);
|
||||
|
||||
+41
-6
@@ -53,6 +53,7 @@ pub struct GameWindow {
|
||||
children: ViewportIdMap<ChildWindowWrapper>,
|
||||
child_states: UiData<ViewportIdMap<ChildState>>,
|
||||
queued_children: Vec<ChildWindow>,
|
||||
show_player_name: bool,
|
||||
}
|
||||
|
||||
impl GameWindow {
|
||||
@@ -94,6 +95,7 @@ impl GameWindow {
|
||||
children: ViewportIdMap::default(),
|
||||
child_states: UiData::new(),
|
||||
queued_children: vec![],
|
||||
show_player_name: false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,6 +178,8 @@ impl GameWindow {
|
||||
};
|
||||
|
||||
let mut viewport = child.initial_viewport();
|
||||
let title = viewport.title.clone().unwrap();
|
||||
let sim_id = child.sim_id();
|
||||
if let Some(state) = self.child_states.get(&viewport_id) {
|
||||
viewport.position = Some(state.position);
|
||||
viewport.inner_size = Some(state.size);
|
||||
@@ -184,6 +188,8 @@ impl GameWindow {
|
||||
viewport_id,
|
||||
ChildWindowWrapper {
|
||||
app: Arc::new(Mutex::new(child)),
|
||||
title,
|
||||
sim_id,
|
||||
updates: Some(viewport),
|
||||
close_requested: Arc::new(AtomicBool::new(false)),
|
||||
},
|
||||
@@ -371,7 +377,7 @@ impl GameWindow {
|
||||
});
|
||||
ui.menu_button("Options", |ui| self.show_options_menu(ui));
|
||||
ui.menu_button("Multiplayer", |ui| {
|
||||
let has_player_2 = self.client.sim_state(SimId::Player2) != SimState::Uninitialized;
|
||||
let has_player_2 = self.client.has_player_2();
|
||||
if self.sim_id == SimId::Player1
|
||||
&& !has_player_2
|
||||
&& ui.button("Open Player 2").clicked()
|
||||
@@ -623,8 +629,8 @@ impl GameWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for GameWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
@@ -639,6 +645,30 @@ impl AppWindow for GameWindow {
|
||||
}
|
||||
|
||||
fn show(&mut self, ui: &mut Ui) {
|
||||
let has_player_2 = self.client.has_player_2();
|
||||
if !self.show_player_name && has_player_2 {
|
||||
ui.send_viewport_cmd(ViewportCommand::Title(format!("Lemur ({})", self.sim_id)));
|
||||
for (viewport_id, child) in &self.children {
|
||||
if let Some(sim_id) = child.sim_id {
|
||||
ui.send_viewport_cmd_to(
|
||||
*viewport_id,
|
||||
ViewportCommand::Title(format!("{} ({sim_id})", child.title)),
|
||||
);
|
||||
}
|
||||
}
|
||||
self.show_player_name = true;
|
||||
} else if self.show_player_name && !has_player_2 {
|
||||
ui.send_viewport_cmd(ViewportCommand::Title("Lemur".to_string()));
|
||||
for (viewport_id, child) in &self.children {
|
||||
if child.sim_id.is_some() {
|
||||
ui.send_viewport_cmd_to(
|
||||
*viewport_id,
|
||||
ViewportCommand::Title(child.title.clone()),
|
||||
);
|
||||
}
|
||||
}
|
||||
self.show_player_name = false;
|
||||
}
|
||||
self.child_states.load(ui);
|
||||
let dimensions = {
|
||||
let bounds = ui.content_rect();
|
||||
@@ -690,12 +720,15 @@ impl AppWindow for GameWindow {
|
||||
let app = child.app.clone();
|
||||
let viewport_builder = child.updates.take().unwrap_or_default();
|
||||
let close_requested = child.close_requested.clone();
|
||||
if let Some(rect) = ui.input_for(*id, |inp| inp.viewport().outer_rect) {
|
||||
if let (Some(outer), Some(inner)) = ui.input_for(*id, |inp| {
|
||||
let viewport = inp.viewport();
|
||||
(viewport.outer_rect, viewport.inner_rect)
|
||||
}) {
|
||||
self.child_states.insert(
|
||||
*id,
|
||||
ChildState {
|
||||
position: rect.min,
|
||||
size: rect.size(),
|
||||
position: outer.min,
|
||||
size: inner.size(),
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -742,6 +775,8 @@ struct ColorPickerState {
|
||||
|
||||
struct ChildWindowWrapper {
|
||||
app: Arc<Mutex<AppWrapper>>,
|
||||
title: String,
|
||||
sim_id: Option<SimId>,
|
||||
updates: Option<ViewportBuilder>,
|
||||
close_requested: Arc<AtomicBool>,
|
||||
}
|
||||
|
||||
+3
-3
@@ -42,13 +42,13 @@ impl GdbServerWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for GdbServerWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("GDB Server ({})", self.sim_id))
|
||||
.with_title("GDB Server")
|
||||
.with_inner_size((300.0, 200.0))
|
||||
}
|
||||
|
||||
|
||||
@@ -82,13 +82,13 @@ impl ProfileWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for ProfileWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("Profiler ({})", self.sim_id))
|
||||
.with_title("Profiler")
|
||||
.with_inner_size((300.0, 200.0))
|
||||
}
|
||||
|
||||
|
||||
@@ -29,13 +29,13 @@ impl TerminalWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for TerminalWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("Terminal ({})", self.sim_id))
|
||||
.with_title("Terminal")
|
||||
.with_inner_size((640.0, 480.0))
|
||||
}
|
||||
|
||||
|
||||
+10
-6
@@ -1,6 +1,6 @@
|
||||
use std::{
|
||||
fmt::{Display, UpperHex},
|
||||
ops::{Bound, Deref, DerefMut, RangeBounds},
|
||||
ops::{AddAssign, Bound, Deref, DerefMut, MulAssign, RangeBounds},
|
||||
str::FromStr,
|
||||
};
|
||||
|
||||
@@ -10,7 +10,7 @@ use egui::{
|
||||
RichText, Sense, Shape, Stroke, StrokeKind, TextEdit, Ui, UiBuilder, Vec2, Widget, WidgetText,
|
||||
ecolor::HexColor, util::id_type_map::SerializableAny,
|
||||
};
|
||||
use num_traits::{CheckedAdd, CheckedSub, One};
|
||||
use num_traits::{CheckedAdd, CheckedSub, One, Zero};
|
||||
|
||||
pub trait UiExt {
|
||||
fn section(&mut self, title: impl Into<String>, add_contents: impl FnOnce(&mut Ui));
|
||||
@@ -105,14 +105,16 @@ enum Direction {
|
||||
|
||||
pub trait Number:
|
||||
Copy
|
||||
+ Zero
|
||||
+ One
|
||||
+ AddAssign
|
||||
+ MulAssign
|
||||
+ CheckedAdd
|
||||
+ CheckedSub
|
||||
+ Eq
|
||||
+ Ord
|
||||
+ Display
|
||||
+ FromStr
|
||||
+ FromRadix16
|
||||
+ UpperHex
|
||||
+ Send
|
||||
+ Sync
|
||||
@@ -121,14 +123,16 @@ pub trait Number:
|
||||
}
|
||||
impl<
|
||||
T: Copy
|
||||
+ Zero
|
||||
+ One
|
||||
+ AddAssign
|
||||
+ MulAssign
|
||||
+ CheckedAdd
|
||||
+ CheckedSub
|
||||
+ Eq
|
||||
+ Ord
|
||||
+ Display
|
||||
+ FromStr
|
||||
+ FromRadix16
|
||||
+ UpperHex
|
||||
+ Send
|
||||
+ Sync
|
||||
@@ -209,8 +213,8 @@ impl<T: Number> Widget for NumberEdit<'_, T> {
|
||||
let from_string = |val: &str| {
|
||||
if self.hex {
|
||||
let bytes = val.as_bytes();
|
||||
let (result, consumed) = T::from_radix_16(bytes);
|
||||
(consumed == bytes.len()).then_some(result)
|
||||
let (result, consumed) = atoi::Integer::<T>::from_radix_16(bytes);
|
||||
(consumed == bytes.len()).then_some(result.0)
|
||||
} else {
|
||||
val.parse::<T>().ok()
|
||||
}
|
||||
|
||||
@@ -191,13 +191,13 @@ impl BgMapWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for BgMapWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("BG Map Data ({})", self.sim_id))
|
||||
.with_title("BG Map Data")
|
||||
.with_inner_size((640.0, 480.0))
|
||||
}
|
||||
|
||||
|
||||
@@ -251,13 +251,13 @@ impl CharacterDataWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for CharacterDataWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("Character Data ({})", self.sim_id))
|
||||
.with_title("Character Data")
|
||||
.with_inner_size((640.0, 480.0))
|
||||
}
|
||||
|
||||
|
||||
@@ -151,13 +151,13 @@ impl FrameBufferWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for FrameBufferWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("Frame Buffers ({})", self.sim_id))
|
||||
.with_title("Frame Buffers")
|
||||
.with_inner_size((640.0, 480.0))
|
||||
}
|
||||
|
||||
|
||||
@@ -207,13 +207,13 @@ impl ObjectWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for ObjectWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("Object Data ({})", self.sim_id))
|
||||
.with_title("Object Data")
|
||||
.with_inner_size((640.0, 500.0))
|
||||
}
|
||||
|
||||
|
||||
@@ -630,13 +630,13 @@ fn read_address<T: MemoryValue>(registers: &MemoryRef, address: usize) -> T {
|
||||
}
|
||||
|
||||
impl AppWindow for RegisterWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("Registers ({})", self.sim_id))
|
||||
.with_title("Registers")
|
||||
.with_inner_size((800.0, 480.0))
|
||||
}
|
||||
|
||||
|
||||
@@ -527,13 +527,13 @@ impl WorldWindow {
|
||||
}
|
||||
|
||||
impl AppWindow for WorldWindow {
|
||||
fn sim_id(&self) -> SimId {
|
||||
self.sim_id
|
||||
fn sim_id(&self) -> Option<SimId> {
|
||||
Some(self.sim_id)
|
||||
}
|
||||
|
||||
fn initial_viewport(&self) -> ViewportBuilder {
|
||||
ViewportBuilder::default()
|
||||
.with_title(format!("Worlds ({})", self.sim_id))
|
||||
.with_title("Worlds")
|
||||
.with_inner_size((640.0, 520.0))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user