Skip to content

Commit

Permalink
Dynamically position resource checkbox Y positions
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRStevens committed Feb 25, 2025
1 parent fe5cb6c commit daabf9c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions appOPHD/UI/Reports/MineReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ MineReport::MineReport() :
add(btnDigNewLevel, {0, 75});
add(btnTakeMeThere, {0, 110});

add(chkResources[0], {0, 210});
add(chkResources[1], {0, 280});
add(chkResources[2], {0, 350});
add(chkResources[3], {0, 420});
const auto checkBoxOriginY = 170 + fontMediumBold.height() + 10 + 10;
add(chkResources[0], {0, checkBoxOriginY});
add(chkResources[1], {0, checkBoxOriginY + 70});
add(chkResources[2], {0, checkBoxOriginY + 70 * 2});
add(chkResources[3], {0, checkBoxOriginY + 70 * 3});

// Truck Management Pane
btnAddTruck.size({140, 30});
Expand Down

0 comments on commit daabf9c

Please sign in to comment.