load program input when opening a solution
This commit is contained in:
parent
146618cdc3
commit
4a51369b18
4 changed files with 7 additions and 21 deletions
14
src/main.rs
14
src/main.rs
|
@ -89,22 +89,10 @@ impl Game {
|
|||
|
||||
fn draw(&mut self, d: &mut RaylibDrawHandle) {
|
||||
d.clear_background(Color::new(64, 64, 64, 255));
|
||||
// let level_list_width = 240;
|
||||
|
||||
let level_list_width = d.get_screen_width() / 4; // woah! Reactive UI! so fancy
|
||||
let screen_height = d.get_screen_height();
|
||||
d.draw_rectangle(0, 0, level_list_width, screen_height, Color::GRAY);
|
||||
// let (a, b, c) = d.gui_scroll_panel(
|
||||
// Rectangle {
|
||||
// x: 10.,
|
||||
// y: 10.,
|
||||
// width: level_list_width as f32 - 20.,
|
||||
// height: screen_height as f32 - 40.,
|
||||
// },
|
||||
// Some(rstr!("text")),
|
||||
// Rectangle{},
|
||||
// scroll,
|
||||
// view,
|
||||
// );
|
||||
|
||||
let clicked = d.is_mouse_button_pressed(MouseButton::MOUSE_BUTTON_LEFT);
|
||||
let mouse_pos = d.get_mouse_position();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue