Skip to content

Instantly share code, notes, and snippets.

@LaylBongers
Created January 22, 2018 00:38
Show Gist options
  • Save LaylBongers/0aeece1db9e0f173e00bfe3d151e5ba0 to your computer and use it in GitHub Desktop.
Save LaylBongers/0aeece1db9e0f173e00bfe3d151e5ba0 to your computer and use it in GitHub Desktop.
pub fn new() -> Self {
let mut background_area = Rect::new(50.0, 500.0, 1180.0, 200.0);
background_area.x = 25.0;
Menu {
options: Vec::new(),
background_area,
options_anchor: Point2::new(96.0, 516.0),
col_max: 5,
col_offset: 238.0,
row_max: 5,
row_offset: 35.0,
selected_option: 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment