Display (Player 1) or (Player 2) consistently

This commit is contained in:
2026-07-16 23:56:20 -04:00
parent b283b69f74
commit d934c843eb
12 changed files with 68 additions and 33 deletions
+3 -3
View File
@@ -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))
}
+3 -3
View File
@@ -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))
}
+3 -3
View File
@@ -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))
}
+3 -3
View File
@@ -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))
}
+3 -3
View File
@@ -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))
}
+3 -3
View File
@@ -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))
}