diff --git a/src/Tools/psxreadmap/src/lib.rs b/src/Tools/psxreadmap/src/lib.rs index 89f87e2a..ada4d42c 100644 --- a/src/Tools/psxreadmap/src/lib.rs +++ b/src/Tools/psxreadmap/src/lib.rs @@ -332,16 +332,30 @@ impl ConsoleUI { } fn render_list(frame: &mut ConsoleFrame, layout: Rect) { - let text = Paragraph::new("Comming soon") - .style(Style::default().fg(Color::White)) - .alignment(Alignment::Center) - .block(Block::default() - .borders(Borders::ALL) - .style(Style::default().fg(Color::White)) - .border_type(BorderType::Plain).title("QUIT") - ); + let (info_layout, list_layout) = { + let layout = Layout::default().direction(Direction::Vertical).constraints([ + Constraint::Min(5), + Constraint::Max(5), + ]).split(layout); - frame.render_widget(text, layout); + (layout[1], Layout::default().direction(Direction::Horizontal).constraints([ + Constraint::Percentage(50), + Constraint::Percentage(50) + ]).split(layout[0])) + }; + + let text = Paragraph::new("Schwimmflügel") + .style(Style::default().fg(Color::White)) + .alignment(Alignment::Center) + .block(Block::default() + .borders(Borders::ALL) + .style(Style::default().fg(Color::White)) + .border_type(BorderType::Plain).title("Wuffi") + ); + + frame.render_widget(text.clone(), info_layout); + frame.render_widget(text.clone(), list_layout[0]); + frame.render_widget(text, list_layout[1]); } fn render_quit(frame: &mut ConsoleFrame, layout: Rect) {