Skip to content

Commit 06c2c51

Browse files
Hide some dev only windows
1 parent 06cf85b commit 06c2c51

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

src/rendering/render_world.rs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,21 +2123,21 @@ pub fn render_ui<
21232123
};
21242124
let game_state_ref = &mut fake_game_state;
21252125

2126-
Window::new("Mouse Pos").default_open(true).show(ctx, |ui| {
2127-
ui.label(
2128-
format!(
2129-
"{:?}",
2130-
ActionStateMachine::<u8, u8>::player_mouse_to_tile(
2131-
state_machine_ref.zoom_level,
2132-
state_machine_ref
2133-
.map_view_info
2134-
.unwrap_or(state_machine_ref.local_player_pos),
2135-
state_machine_ref.current_mouse_pos
2136-
)
2137-
)
2138-
.as_str(),
2139-
)
2140-
});
2126+
// Window::new("Mouse Pos").default_open(true).show(ctx, |ui| {
2127+
// ui.label(
2128+
// format!(
2129+
// "{:?}",
2130+
// ActionStateMachine::<u8, u8>::player_mouse_to_tile(
2131+
// state_machine_ref.zoom_level,
2132+
// state_machine_ref
2133+
// .map_view_info
2134+
// .unwrap_or(state_machine_ref.local_player_pos),
2135+
// state_machine_ref.current_mouse_pos
2136+
// )
2137+
// )
2138+
// .as_str(),
2139+
// )
2140+
// });
21412141

21422142
// TODO: Make this conditional
21432143
let mut open = state_machine_ref.open_windows[action_state_machine::Window::Hotbar];
@@ -3434,6 +3434,7 @@ pub fn render_ui<
34343434
}
34353435
});
34363436

3437+
#[cfg(debug_assertions)]
34373438
Window::new("RawData").default_open(false).show(ctx, |ui| {
34383439
let raw = get_raw_data_test();
34393440

0 commit comments

Comments
 (0)