Skip to content

Commit

Permalink
show how many cells are being selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmut committed May 1, 2024
1 parent 3b086de commit c6d1d1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Or `git tag -n | grep -E "^[^.]+\.[^.]+\.0"` for the big features only.
- [x] compile for linux, wasm, windows and mac
- UI
- [x] highlight and count cells when clicking a queued task
- [ ] count cells while selecting (I want to build X tiles)
- [x] count cells while selecting (I want to build X tiles)
- [x] bigger robot icon for the queue
- [x] loading screen
- [x] minimal friction to explain that solar panels can not be build underground
Expand All @@ -40,7 +40,7 @@ Or `git tag -n | grep -E "^[^.]+\.[^.]+\.0"` for the big features only.
# Bugs

- [ ] touchpad scroll is too sensitive
- [ ] tile transparency also makes floor transparent
- [-] tile transparency also makes floor transparent. Solved: remove floors
- [ ] dirt can be converted to rock. is this wrong?
- [ ] macroquad forces all windows except 1 to be inactive and darker
- [ ] egui draws textures with the wrong alpha. I suspect egui can use the textures loaded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn show_available_transformations(
let mut max_button_width = drawer.ui_measure_text(panel_title, FONT_SIZE).x;
let panel_margin = MARGIN;
let big_margin_x = panel_margin + 2.0 * FONT_SIZE;
let panel_height = 3.0 * line_height + transformations.len() as f32 * 1.2 * line_height;
let panel_height = 3.0 * line_height + (1 + transformations.len()) as f32 * 1.2 * line_height;
let panel_width = max_button_width + 2.0 * big_margin_x;
for transformation in &transformations {
let text = to_action_str(transformation.new_tile_type);
Expand All @@ -51,6 +51,7 @@ pub fn show_available_transformations(
panel.w,
panel.h,
&mut |drawer| {
drawer.ui_text(&format!("(on {} cells)", highlighted_cells.len()));
for transformation in &transformations {
let text = to_action_str(transformation.new_tile_type);
match drawer.ui_button(text) {
Expand Down

0 comments on commit c6d1d1e

Please sign in to comment.